public class DefaultUserInfo extends DefaultOAuth2User implements UserInfo
UserInfo
.
The key used for accessing the "name" of the
Principal
(user) via DefaultOAuth2User.getAttributes()
is StandardClaimName.NAME
or if not available
will default to StandardClaimName.SUB
.
UserInfo
,
DefaultOAuth2User
,
Serialized FormUserInfo.Address
Constructor and Description |
---|
DefaultUserInfo(java.util.Map<java.lang.String,java.lang.Object> attributes) |
DefaultUserInfo(java.util.Set<GrantedAuthority> authorities,
java.util.Map<java.lang.String,java.lang.Object> attributes) |
Modifier and Type | Method and Description |
---|---|
UserInfo.Address |
getAddress() |
java.lang.String |
getBirthdate() |
java.lang.String |
getEmail() |
java.lang.Boolean |
getEmailVerified() |
java.lang.String |
getFamilyName() |
java.lang.String |
getGender() |
java.lang.String |
getGivenName() |
java.lang.String |
getLocale() |
java.lang.String |
getMiddleName() |
java.lang.String |
getName()
Returns the name of the authenticated
Principal . |
java.lang.String |
getNickName() |
java.lang.String |
getPhoneNumber() |
java.lang.Boolean |
getPhoneNumberVerified() |
java.lang.String |
getPicture() |
java.lang.String |
getPreferredUsername() |
java.lang.String |
getProfile() |
java.lang.String |
getSubject() |
java.time.Instant |
getUpdatedAt() |
java.lang.String |
getWebsite() |
java.lang.String |
getZoneInfo() |
equals, getAttributeAsBoolean, getAttributeAsInstant, getAttributeAsString, getAttributes, getAuthorities, hashCode, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getAttributes, getAuthorities
public DefaultUserInfo(java.util.Map<java.lang.String,java.lang.Object> attributes)
public DefaultUserInfo(java.util.Set<GrantedAuthority> authorities, java.util.Map<java.lang.String,java.lang.Object> attributes)
public java.lang.String getSubject()
getSubject
in interface UserInfo
public java.lang.String getName()
AuthenticatedPrincipal
Principal
. Never null
.getName
in interface AuthenticatedPrincipal
getName
in class DefaultOAuth2User
Principal
public java.lang.String getGivenName()
getGivenName
in interface UserInfo
public java.lang.String getFamilyName()
getFamilyName
in interface UserInfo
public java.lang.String getMiddleName()
getMiddleName
in interface UserInfo
public java.lang.String getNickName()
getNickName
in interface UserInfo
public java.lang.String getPreferredUsername()
getPreferredUsername
in interface UserInfo
public java.lang.String getProfile()
getProfile
in interface UserInfo
public java.lang.String getPicture()
getPicture
in interface UserInfo
public java.lang.String getWebsite()
getWebsite
in interface UserInfo
public java.lang.Boolean getEmailVerified()
getEmailVerified
in interface UserInfo
public java.lang.String getBirthdate()
getBirthdate
in interface UserInfo
public java.lang.String getZoneInfo()
getZoneInfo
in interface UserInfo
public java.lang.String getPhoneNumber()
getPhoneNumber
in interface UserInfo
public java.lang.Boolean getPhoneNumberVerified()
getPhoneNumberVerified
in interface UserInfo
public UserInfo.Address getAddress()
getAddress
in interface UserInfo
public java.time.Instant getUpdatedAt()
getUpdatedAt
in interface UserInfo