com.hp.autonomy.frontend.configuration.authentication.CommunityPrincipal Maven / Gradle / Ivy
/*
* Copyright 2014-2015 Hewlett-Packard Development Company, L.P.
* Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License.
*/
package com.hp.autonomy.frontend.configuration.authentication;
import lombok.Data;
import java.io.Serializable;
import java.security.Principal;
import java.util.Set;
@SuppressWarnings("WeakerAccess")
@Data
public class CommunityPrincipal implements Principal, Serializable {
private static final long serialVersionUID = -8625590848187633506L;
private final long id;
private final String username;
private final String securityInfo;
private final Set idolRoles;
@Override
public String getName() {
return username;
}
}