Class ResolveClaimsSet
java.lang.Object
com.nimbusds.openid.connect.sdk.claims.ClaimsSet
com.nimbusds.openid.connect.sdk.claims.CommonClaimsSet
com.nimbusds.openid.connect.sdk.federation.entities.CommonFederationClaimsSet
com.nimbusds.openid.connect.sdk.federation.api.ResolveClaimsSet
- All Implemented Interfaces:
net.minidev.json.JSONAware
Resolve response claims set.
Related specifications:
- OpenID Connect Federation 1.0, section 7.2.2.
-
Field Summary
FieldsFields inherited from class com.nimbusds.openid.connect.sdk.federation.entities.CommonFederationClaimsSet
EXP_CLAIM_NAME, METADATA_CLAIM_NAME, TRUST_MARKS_CLAIM_NAMEFields inherited from class com.nimbusds.openid.connect.sdk.claims.CommonClaimsSet
IAT_CLAIM_NAME, SUB_CLAIM_NAMEFields inherited from class com.nimbusds.openid.connect.sdk.claims.ClaimsSet
AUD_CLAIM_NAME, claims, ISS_CLAIM_NAME -
Constructor Summary
ConstructorsConstructorDescriptionResolveClaimsSet(com.nimbusds.jwt.JWTClaimsSet jwtClaimsSet) Creates a new resolve response claims set from the specified JWT claims set.ResolveClaimsSet(Issuer iss, Subject sub, Date iat, Date exp, net.minidev.json.JSONObject metadata) Creates a new resolve response claims set with the minimum required claims.ResolveClaimsSet(EntityID iss, EntityID sub, Date iat, Date exp, net.minidev.json.JSONObject metadata) Creates a new resolve response claims set with the minimum required claims. -
Method Summary
Modifier and TypeMethodDescriptionGets the names of the standard top-level claims.Gets the trust chain.voidsetTrustChain(TrustChain trustChain) Sets the trust chain.voidValidates this claims set for having all minimum required claims for a resolve response.Methods inherited from class com.nimbusds.openid.connect.sdk.federation.entities.CommonFederationClaimsSet
getASMetadata, getExpirationTime, getFederationEntityMetadata, getIssuerEntityID, getMetadata, getOAuthClientMetadata, getOPMetadata, getRPMetadata, getSubjectEntityID, getTrustMarkIssuerMetadata, getTrustMarks, setASMetadata, setFederationEntityMetadata, setMetadata, setOAuthClientMetadata, setOPMetadata, setRPMetadata, setTrustMarksMethods inherited from class com.nimbusds.openid.connect.sdk.claims.CommonClaimsSet
getIssueTime, getSubjectMethods 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
-
TRUST_CHAIN_CLAIM_NAME
The trust chain claim name.- See Also:
-
-
Constructor Details
-
ResolveClaimsSet
public ResolveClaimsSet(Issuer iss, Subject sub, Date iat, Date exp, net.minidev.json.JSONObject metadata) Creates a new resolve response claims set with the minimum required claims.- Parameters:
iss- The issuer. Must not benull.sub- The subject. Must not benull.iat- The issue time. Must not benull.exp- The expiration time. Must not benull.metadata- The metadata JSON object. Must not benull.
-
ResolveClaimsSet
public ResolveClaimsSet(EntityID iss, EntityID sub, Date iat, Date exp, net.minidev.json.JSONObject metadata) Creates a new resolve response claims set with the minimum required claims.- Parameters:
iss- The issuer. Must not benull.sub- The subject. Must not benull.iat- The issue time. Must not benull.exp- The expiration time. Must not benull.metadata- The metadata JSON object. Must not benull.
-
ResolveClaimsSet
Creates a new resolve response 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 resolve response claims set.
-
-
Method Details
-
getStandardClaimNames
Gets the names of the standard top-level claims.- Returns:
- The names of the standard top-level claims (read-only set).
-
validateRequiredClaimsPresence
Validates this claims set for having all minimum required claims for a resolve response.- Overrides:
validateRequiredClaimsPresencein classCommonFederationClaimsSet- Throws:
ParseException- If the validation failed and a required claim is missing.
-
getTrustChain
Gets the trust chain. Corresponds to thetrust_chainclaim.- Returns:
- The trust chain,
nullif not specified or parsing failed.
-
setTrustChain
Sets the trust chain. Corresponds to thetrust_chainclaim.- Parameters:
trustChain- The trust chain,nullif not specified.
-