Class TrustMarkClaimsSet
java.lang.Object
com.nimbusds.openid.connect.sdk.claims.ClaimsSet
com.nimbusds.openid.connect.sdk.claims.CommonClaimsSet
com.nimbusds.openid.connect.sdk.federation.trust.marks.TrustMarkClaimsSet
- All Implemented Interfaces:
net.minidev.json.JSONAware
Federation trust mark claims set, serialisable to a JSON object.
Example claims set:
{ "iss" : "https://swamid.sunet.se", "sub" : "https://umu.se/op", "iat" : 1577833200, "exp" : 1609369200, "id" : "https://refeds.org/wp-content/uploads/2016/01/Sirtfi-1.0.pdf" }
Related specifications:
- OpenID Connect Federation 1.0, section 5.3.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
The expiration time claim name.static final String
The identifier claim name.static final String
The mark / logo URI name.static final String
The reference claim name.Fields inherited from class com.nimbusds.openid.connect.sdk.claims.CommonClaimsSet
IAT_CLAIM_NAME, SUB_CLAIM_NAME
Fields inherited from class com.nimbusds.openid.connect.sdk.claims.ClaimsSet
AUD_CLAIM_NAME, claims, ISS_CLAIM_NAME
-
Constructor Summary
ConstructorsConstructorDescriptionTrustMarkClaimsSet
(com.nimbusds.jwt.JWTClaimsSet jwtClaimsSet) Creates a new trust mark claims set from the specified JWT claims set.TrustMarkClaimsSet
(Issuer iss, Subject sub, Identifier id, Date iat) Creates a new trust mark claims set with the minimum required claims. -
Method Summary
Modifier and TypeMethodDescriptionGets the expiration time.getID()
Returns the identifier.Gets the mark / logo URI.Gets the reference URI.void
setExpirationTime
(Date exp) Sets the expiration time.void
Sets the mark / logo URI.void
setReference
(URI refURI) Sets the reference URI.void
Validates this claims set for having all minimum required claims for a trust mark.Methods inherited from class com.nimbusds.openid.connect.sdk.claims.CommonClaimsSet
getIssueTime, getStandardClaimNames, getSubject
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
-
ID_CLAIM_NAME
The identifier claim name.- See Also:
-
LOGO_URI_CLAIM_NAME
The mark / logo URI name.- See Also:
-
EXP_CLAIM_NAME
The expiration time claim name.- See Also:
-
REF_CLAIM_NAME
The reference claim name.- See Also:
-
-
Constructor Details
-
TrustMarkClaimsSet
Creates a new trust mark claims set with the minimum required claims.- Parameters:
iss
- The issuer. Corresponds to theiss
claim. Must not benull
.sub
- The subject. Corresponds to thesub
claim. Must not benull
.id
- The identifier. Corresponds to theid
claim. Must not benull
.iat
- The issue time. Corresponds to theiat
claim. Must not benull
.
-
TrustMarkClaimsSet
Creates a new trust mark claims set from the specified JWT claims set.- Parameters:
jwtClaimsSet
- The JWT claims set. Must not benull
.- Throws:
ParseException
- If the JWT claims set doesn't represent a valid trust mark claims set.
-
-
Method Details
-
validateRequiredClaimsPresence
Validates this claims set for having all minimum required claims for a trust mark.- Throws:
ParseException
- If the validation failed and a required claim is missing.
-
getID
Returns the identifier. Corresponds to theid
claim.- Returns:
- The identifier.
-
getLogoURI
Gets the mark / logo URI. Corresponds to thelogo_uri
claim.- Returns:
- The mark / logo URI,
null
if not specified or parsing failed.
-
setMark
Sets the mark / logo URI. Corresponds to thelogo_uri
claim.- Parameters:
markURI
- The mark / logo URI,null
if not specified.
-
getExpirationTime
Gets the expiration time. Corresponds to theexp
claim.- Returns:
- The expiration time,
null
if not specified or parsing failed.
-
setExpirationTime
Sets the expiration time. Corresponds to theexp
claim.- Parameters:
exp
- The expiration time,null
if not specified.
-
getReference
Gets the reference URI. Corresponds to theref
claim.- Returns:
- The reference URI,
null
if not specified or parsing failed.
-
setReference
Sets the reference URI. Corresponds to theref
claim.- Parameters:
refURI
- The reference URI,null
if not specified.
-