public class JWTOpenIdClaims extends java.lang.Object implements OpenIdClaims
OpenIdClaims
backed by an JWTClaimsSet
.CLAIMS_ACR, CLAIMS_ADDRESS, CLAIMS_AMR, CLAIMS_AUTH_TIME, CLAIMS_AZP, CLAIMS_BIRTHDATE, CLAIMS_EMAIL, CLAIMS_EMAIL_VERIFIED, CLAIMS_FAMILY_NAME, CLAIMS_GENDER, CLAIMS_GIVEN_NAME, CLAIMS_LOCALE, CLAIMS_MIDDLE_NAME, CLAIMS_NAME, CLAIMS_NICKNAME, CLAIMS_NONCE, CLAIMS_PHONE_NUMBER, CLAIMS_PHONE_NUMBER_VERIFIED, CLAIMS_PICTURE, CLAIMS_PREFERRED_USERNAME, CLAIMS_PROFILE, CLAIMS_UPDATED_AT, CLAIMS_WEBSITE, CLAIMS_ZONEINFO
ALL_CLAIMS, AUDIENCE, EXPIRATION_TIME, ISSUED_AT, ISSUER, JWT_ID, NOT_BEFORE, SUBJECT
Constructor and Description |
---|
JWTOpenIdClaims(com.nimbusds.jwt.JWTClaimsSet claimsSet) |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(java.lang.String claimName) |
java.lang.Object |
get(java.lang.String claimName)
Retrieves a value from the claims for the given name.
|
Address |
getAdress()
address.
|
java.util.List<java.lang.String> |
getAudience() |
java.lang.String |
getAuthenticationContextClassReference() |
java.util.List<java.lang.String> |
getAuthenticationMethodReferences() |
java.lang.Integer |
getAuthenticationTime() |
java.lang.String |
getAuthorizedParty() |
java.lang.String |
getBirthday() |
java.util.Map<java.lang.String,java.lang.Object> |
getClaims() |
java.lang.String |
getEmail() |
java.util.Date |
getExpirationTime() |
java.lang.String |
getFamilyName()
family_name.
|
java.lang.String |
getGender() |
java.lang.String |
getGivenName()
given_name.
|
java.util.Date |
getIssuedAt() |
java.lang.String |
getIssuer() |
java.lang.String |
getLocale() |
java.lang.String |
getMiddleName()
middle_name.
|
java.lang.String |
getName()
name.
|
java.lang.String |
getNickname()
nickname.
|
java.lang.String |
getNonce() |
java.lang.String |
getPhoneNumber() |
java.lang.String |
getPicture() |
java.lang.String |
getPreferredUsername()
preferred_username.
|
java.lang.String |
getProfile() |
java.lang.String |
getSubject()
sub.
|
java.lang.Integer |
getUpdatedAt() |
java.lang.String |
getWebsite() |
java.lang.String |
getZoneinfo()
zoneinfo.
|
java.lang.Boolean |
isEmailVerified() |
java.lang.Boolean |
isPhoneNumberVerified() |
java.util.Set<java.lang.String> |
names() |
public JWTOpenIdClaims(com.nimbusds.jwt.JWTClaimsSet claimsSet)
claimsSet
- The JWT claims set@NonNull public java.lang.String getIssuer()
getIssuer
in interface OpenIdClaims
@NonNull public java.util.List<java.lang.String> getAudience()
getAudience
in interface OpenIdClaims
@NonNull public java.util.Date getExpirationTime()
getExpirationTime
in interface OpenIdClaims
@NonNull public java.util.Date getIssuedAt()
getIssuedAt
in interface OpenIdClaims
@NonNull public java.lang.String getSubject()
OpenIdClaims
getSubject
in interface OpenIdClaims
@Nullable public java.lang.String getAuthorizedParty()
getAuthorizedParty
in interface OpenIdClaims
@Nullable public java.util.List<java.lang.String> getAuthenticationMethodReferences()
getAuthenticationMethodReferences
in interface OpenIdClaims
@Nullable public java.lang.String getAuthenticationContextClassReference()
getAuthenticationContextClassReference
in interface OpenIdClaims
@Nullable public java.lang.Integer getAuthenticationTime()
getAuthenticationTime
in interface OpenIdClaims
@Nullable public java.lang.String getNonce()
getNonce
in interface OpenIdClaims
@Nullable public java.lang.String getName()
OpenIdClaims
getName
in interface OpenIdClaims
@Nullable public java.lang.String getGivenName()
OpenIdClaims
getGivenName
in interface OpenIdClaims
@Nullable public java.lang.String getFamilyName()
OpenIdClaims
getFamilyName
in interface OpenIdClaims
@Nullable public java.lang.String getMiddleName()
OpenIdClaims
getMiddleName
in interface OpenIdClaims
@Nullable public java.lang.String getNickname()
OpenIdClaims
getNickname
in interface OpenIdClaims
@Nullable public java.lang.String getPreferredUsername()
OpenIdClaims
getPreferredUsername
in interface OpenIdClaims
@Nullable public java.lang.String getProfile()
getProfile
in interface OpenIdClaims
@Nullable public java.lang.String getPicture()
getPicture
in interface OpenIdClaims
@Nullable public java.lang.String getWebsite()
getWebsite
in interface OpenIdClaims
@Nullable public java.lang.String getEmail()
getEmail
in interface OpenIdClaims
@Nullable public java.lang.Boolean isEmailVerified()
isEmailVerified
in interface OpenIdClaims
@Nullable public java.lang.String getGender()
getGender
in interface OpenIdClaims
@Nullable public java.lang.String getBirthday()
getBirthday
in interface OpenIdClaims
@Nullable public java.lang.String getZoneinfo()
OpenIdClaims
getZoneinfo
in interface OpenIdClaims
@Nullable public java.lang.String getLocale()
getLocale
in interface OpenIdClaims
@Nullable public java.lang.String getPhoneNumber()
getPhoneNumber
in interface OpenIdClaims
@Nullable public java.lang.Boolean isPhoneNumberVerified()
isPhoneNumberVerified
in interface OpenIdClaims
@Nullable public Address getAdress()
OpenIdClaims
getAdress
in interface OpenIdClaims
@Nullable public java.lang.Integer getUpdatedAt()
getUpdatedAt
in interface OpenIdClaims
public java.util.Map<java.lang.String,java.lang.Object> getClaims()
getClaims
in interface OpenIdClaims
@Nullable public java.lang.Object get(java.lang.String claimName)
Claims
@NonNull public java.util.Set<java.lang.String> names()