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 String
IAT_CLAIM_NAME
The issue time claim name.static String
SUB_CLAIM_NAME
The 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 protected
CommonClaimsSet()
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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Date
getIssueTime()
Gets the issue time.static Set<String>
getStandardClaimNames()
Gets the names of the standard top-level claims.Subject
getSubject()
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 thesub
claim.- Returns:
- The subject.
-
getIssueTime
public Date getIssueTime()
Gets the issue time. Corresponds to theiss
claim.- Returns:
- The issue time,
null
if not specified.
-
-