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:
EntityStatementClaimsSet,IDTokenClaimsSet,LogoutTokenClaimsSet,TrustMarkClaimsSet
public abstract class CommonClaimsSet extends ClaimsSet
Common claims set.
-
-
Field Summary
Fields Modifier and Type Field Description static StringIAT_CLAIM_NAMEThe issue time claim name.static StringSUB_CLAIM_NAMEThe subject claim name.-
Fields inherited from class com.nimbusds.openid.connect.sdk.claims.ClaimsSet
AUD_CLAIM_NAME, claims, ISS_CLAIM_NAME
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedCommonClaimsSet()Creates a new empty common claims set.protectedCommonClaimsSet(net.minidev.json.JSONObject jsonObject)Creates a new common claims set from the specified JSON object.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DategetIssueTime()Gets the issue time.static Set<String>getStandardClaimNames()Gets the names of the standard top-level claims.SubjectgetSubject()Gets the subject.-
Methods inherited from class com.nimbusds.openid.connect.sdk.claims.ClaimsSet
getAudience, getBooleanClaim, getClaim, getClaim, getDateClaim, getIssuer, getJSONObjectClaim, getLangTaggedClaim, getNumberClaim, getStringClaim, getStringClaim, getStringListClaim, getURIClaim, getURLClaim, putAll, putAll, setAudience, setAudience, setClaim, setClaim, setDateClaim, setIssuer, setURIClaim, setURLClaim, toJSONObject, toJSONString, toJWTClaimsSet
-
-
-
-
Field Detail
-
SUB_CLAIM_NAME
public static final String SUB_CLAIM_NAME
The subject claim name.- See Also:
- Constant Field Values
-
IAT_CLAIM_NAME
public static final String IAT_CLAIM_NAME
The issue time claim name.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CommonClaimsSet
protected CommonClaimsSet()
Creates a new empty common claims set.
-
CommonClaimsSet
protected CommonClaimsSet(net.minidev.json.JSONObject jsonObject)
Creates a new common claims set from the specified JSON object.- Parameters:
jsonObject- The JSON object. Must not benull.
-
-
Method Detail
-
getStandardClaimNames
public static Set<String> getStandardClaimNames()
Gets the names of the standard top-level claims.- Returns:
- The names of the standard top-level claims (read-only set).
-
getSubject
public Subject getSubject()
Gets the subject. Corresponds to thesubclaim.- Returns:
- The subject.
-
getIssueTime
public Date getIssueTime()
Gets the issue time. Corresponds to theissclaim.- Returns:
- The issue time,
nullif not specified.
-
-