Class CommonFederationClaimsSet
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
- All Implemented Interfaces:
net.minidev.json.JSONAware
- Direct Known Subclasses:
EntityStatementClaimsSet
,ResolveClaimsSet
Common federation claims set.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
The expiration time claim name.static final String
The metadata claim name.static final String
The trust marks 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
ConstructorsModifierConstructorDescriptionprotected
Creates a new empty common federation claims set.protected
CommonFederationClaimsSet
(net.minidev.json.JSONObject jsonObject) Creates a new common federation claims set from the specified JSON object. -
Method Summary
Modifier and TypeMethodDescriptionGets the OAuth 2.0 authorisation server metadata if present for this entity.Gets the entity statement expiration time.Gets the federation entity metadata if present for this entity.Returns the issuer as entity ID.net.minidev.json.JSONObject
getMetadata
(EntityType type) Gets the metadata for the specified entity type.Gets the OAuth 2.0 client metadata if present for this entity.Gets the OpenID provider metadata if present for this entity.Gets the OpenID relying party metadata if present for this entity.Returns the subject as entity ID.Deprecated.Gets the trust marks.void
setASMetadata
(AuthorizationServerMetadata asMetadata) Sets the OAuth 2.0 authorisation server metadata if present for this entity.void
setFederationEntityMetadata
(FederationEntityMetadata entityMetadata) Sets the federation entity metadata if present for this entity.void
setMetadata
(EntityType type, net.minidev.json.JSONObject metadata) Sets the metadata for the specified entity type.void
setOAuthClientMetadata
(ClientMetadata clientMetadata) Sets the OAuth 2.0 client metadata if present for this entity.void
setOPMetadata
(OIDCProviderMetadata opMetadata) Gets the OpenID provider metadata if present for this entity.void
setRPMetadata
(OIDCClientMetadata rpMetadata) Sets the OpenID relying party metadata if present for this entity.void
setTrustMarks
(List<TrustMarkEntry> marks) Sets the trust marks.protected void
Validates this claims set for having all minimum required claims.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
-
EXP_CLAIM_NAME
The expiration time claim name.- See Also:
-
METADATA_CLAIM_NAME
The metadata claim name.- See Also:
-
TRUST_MARKS_CLAIM_NAME
The trust marks claim name.- See Also:
-
-
Constructor Details
-
CommonFederationClaimsSet
protected CommonFederationClaimsSet()Creates a new empty common federation claims set. -
CommonFederationClaimsSet
Creates a new common federation claims set from the specified JSON object.- Parameters:
jsonObject
- The JSON object. Must not benull
.
-
-
Method Details
-
validateRequiredClaimsPresence
Validates this claims set for having all minimum required claims.- Throws:
ParseException
- If the validation failed and a required claim is missing.
-
getIssuerEntityID
Returns the issuer as entity ID. Corresponds to theiss
claim.- Returns:
- The issuer as entity ID.
-
getSubjectEntityID
Returns the subject as entity ID. Corresponds to theiss
claim.- Returns:
- The subject as entity ID.
-
getExpirationTime
Gets the entity statement expiration time. Corresponds to theexp
claim.- Returns:
- The expiration time,
null
if not specified or parsing failed.
-
getMetadata
Gets the metadata for the specified entity type. Use a typed getter, such asgetRPMetadata()
, when available. Corresponds to themetadata
claim.- Parameters:
type
- The entity type. Must not benull
.- Returns:
- The metadata,
null
if not specified or if parsing failed.
-
setMetadata
Sets the metadata for the specified entity type. Use a typed setter, such assetRPMetadata(com.nimbusds.openid.connect.sdk.rp.OIDCClientMetadata)
, when available. Corresponds to themetadata
claim.- Parameters:
type
- The type. Must not benull
.metadata
- The metadata,null
if not specified.
-
getRPMetadata
Gets the OpenID relying party metadata if present for this entity. Corresponds to themetadata.openid_relying_party
claim.- Returns:
- The RP metadata,
null
if not specified or if parsing failed.
-
setRPMetadata
Sets the OpenID relying party metadata if present for this entity. Corresponds to themetadata.openid_relying_party
claim.- Parameters:
rpMetadata
- The RP metadata,null
if not specified.
-
getOPMetadata
Gets the OpenID provider metadata if present for this entity. Corresponds to themetadata.openid_provider
claim.- Returns:
- The OP metadata,
null
if not specified or if parsing failed.
-
setOPMetadata
Gets the OpenID provider metadata if present for this entity. Corresponds to themetadata.openid_provider
claim.- Parameters:
opMetadata
- The OP metadata,null
if not specified.
-
getOAuthClientMetadata
Gets the OAuth 2.0 client metadata if present for this entity. Corresponds to themetadata.oauth_client
claim.- Returns:
- The client metadata,
null
if not specified or if parsing failed.
-
setOAuthClientMetadata
Sets the OAuth 2.0 client metadata if present for this entity. Corresponds to themetadata.oauth_client
claim.- Parameters:
clientMetadata
- The client metadata,null
if not specified.
-
getASMetadata
Gets the OAuth 2.0 authorisation server metadata if present for this entity. Corresponds to themetadata.oauth_authorization_server
claim.- Returns:
- The AS metadata,
null
if not specified or if parsing failed.
-
setASMetadata
Sets the OAuth 2.0 authorisation server metadata if present for this entity. Corresponds to themetadata.oauth_authorization_server
claim.- Parameters:
asMetadata
- The AS metadata,null
if not specified.
-
getFederationEntityMetadata
Gets the federation entity metadata if present for this entity. Corresponds to themetadata.federation_entity
claim.- Returns:
- The federation entity metadata,
null
if not specified or if parsing failed.
-
setFederationEntityMetadata
Sets the federation entity metadata if present for this entity. Corresponds to themetadata.federation_entity
claim.- Parameters:
entityMetadata
- The federation entity metadata,null
if not specified.
-
getTrustMarkIssuerMetadata
Deprecated.Gets the trust mark issuer metadata if present for this entity. Corresponds to themetadata.trust_mark_issuer
claim.- Returns:
- The trust mark issuer metadata,
null
if not specified or if parsing failed.
-
getTrustMarks
Gets the trust marks. Corresponds to thetrust_marks
claim.- Returns:
- The trust marks,
null
if not specified or parsing failed.
-
setTrustMarks
Sets the trust marks. Corresponds to thetrust_marks
claim.- Parameters:
marks
- The trust marks,null
if not specified.
-