Class CommonClaimsSet
java.lang.Object
com.nimbusds.openid.connect.sdk.claims.ClaimsSet
com.nimbusds.openid.connect.sdk.claims.CommonClaimsSet
- All Implemented Interfaces:
net.minidev.json.JSONAware
- Direct Known Subclasses:
CommonFederationClaimsSet
,IDTokenClaimsSet
,LogoutTokenClaimsSet
,TrustMarkClaimsSet
Common claims set.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
The issue time claim name.static final String
The subject claim name.Fields inherited from class com.nimbusds.openid.connect.sdk.claims.ClaimsSet
AUD_CLAIM_NAME, claims, ISS_CLAIM_NAME
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Creates a new empty common claims set.protected
CommonClaimsSet
(net.minidev.json.JSONObject jsonObject) Creates a new common claims set from the specified JSON object. -
Method Summary
Modifier and TypeMethodDescriptionGets the issue time.Gets the names of the standard top-level claims.Gets the subject.Methods inherited from class com.nimbusds.openid.connect.sdk.claims.ClaimsSet
equals, getAudience, getBooleanClaim, getClaim, getClaim, getDateClaim, getIssuer, getJSONArrayClaim, getJSONObjectClaim, getLangTaggedClaim, getNumberClaim, getStringClaim, getStringClaim, getStringListClaim, getURIClaim, getURLClaim, hashCode, putAll, putAll, setAudience, setAudience, setClaim, setClaim, setDateClaim, setIssuer, setURIClaim, setURLClaim, toJSONObject, toJSONString, toJWTClaimsSet, toString
-
Field Details
-
SUB_CLAIM_NAME
The subject claim name.- See Also:
-
IAT_CLAIM_NAME
The issue time claim name.- See Also:
-
-
Constructor Details
-
CommonClaimsSet
protected CommonClaimsSet()Creates a new empty common claims set. -
CommonClaimsSet
Creates a new common claims set from the specified JSON object.- Parameters:
jsonObject
- The JSON object. Must not benull
.
-
-
Method Details
-
getStandardClaimNames
Gets the names of the standard top-level claims.- Returns:
- The names of the standard top-level claims (read-only set).
-
getSubject
Gets the subject. Corresponds to thesub
claim.- Returns:
- The subject.
-
getIssueTime
Gets the issue time. Corresponds to theiss
claim.- Returns:
- The issue time,
null
if not specified.
-