INNER CODE UNIT · Java
getProfile
bujiio/buji-pac4j · src/main/java/io/buji/pac4j/subject/Pac4jPrincipal.java:84
public UserProfile getProfile() {
return ProfileHelper.flatIntoOneProfile(this.profiles).get();
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
final Pac4jPrincipal that = (Pac4jPrincipal) o;
return profiles != null ? profiles.equals(that.profiles) : that.profiles == null;
}
@Override
public int hashCode() {
return profiles != null ? profiles.hashCode() : 0;
}