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 StringThe expiration time claim name.static final StringThe metadata claim name.static final StringThe trust marks claim name.Fields 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
ConstructorsModifierConstructorDescriptionprotectedCreates a new empty common federation claims set.protectedCommonFederationClaimsSet(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.JSONObjectgetMetadata(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.voidsetASMetadata(AuthorizationServerMetadata asMetadata) Sets the OAuth 2.0 authorisation server metadata if present for this entity.voidsetFederationEntityMetadata(FederationEntityMetadata entityMetadata) Sets the federation entity metadata if present for this entity.voidsetMetadata(EntityType type, net.minidev.json.JSONObject metadata) Sets the metadata for the specified entity type.voidsetOAuthClientMetadata(ClientMetadata clientMetadata) Sets the OAuth 2.0 client metadata if present for this entity.voidsetOPMetadata(OIDCProviderMetadata opMetadata) Gets the OpenID provider metadata if present for this entity.voidsetRPMetadata(OIDCClientMetadata rpMetadata) Sets the OpenID relying party metadata if present for this entity.voidsetTrustMarks(List<TrustMarkEntry> marks) Sets the trust marks.protected voidValidates this claims set for having all minimum required claims.Methods inherited from class com.nimbusds.openid.connect.sdk.claims.CommonClaimsSet
getIssueTime, getStandardClaimNames, 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
-
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 theissclaim.- Returns:
- The issuer as entity ID.
-
getSubjectEntityID
Returns the subject as entity ID. Corresponds to theissclaim.- Returns:
- The subject as entity ID.
-
getExpirationTime
Gets the entity statement expiration time. Corresponds to theexpclaim.- Returns:
- The expiration time,
nullif not specified or parsing failed.
-
getMetadata
Gets the metadata for the specified entity type. Use a typed getter, such asgetRPMetadata(), when available. Corresponds to themetadataclaim.- Parameters:
type- The entity type. Must not benull.- Returns:
- The metadata,
nullif 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 themetadataclaim.- Parameters:
type- The type. Must not benull.metadata- The metadata,nullif not specified.
-
getRPMetadata
Gets the OpenID relying party metadata if present for this entity. Corresponds to themetadata.openid_relying_partyclaim.- Returns:
- The RP metadata,
nullif not specified or if parsing failed.
-
setRPMetadata
Sets the OpenID relying party metadata if present for this entity. Corresponds to themetadata.openid_relying_partyclaim.- Parameters:
rpMetadata- The RP metadata,nullif not specified.
-
getOPMetadata
Gets the OpenID provider metadata if present for this entity. Corresponds to themetadata.openid_providerclaim.- Returns:
- The OP metadata,
nullif not specified or if parsing failed.
-
setOPMetadata
Gets the OpenID provider metadata if present for this entity. Corresponds to themetadata.openid_providerclaim.- Parameters:
opMetadata- The OP metadata,nullif not specified.
-
getOAuthClientMetadata
Gets the OAuth 2.0 client metadata if present for this entity. Corresponds to themetadata.oauth_clientclaim.- Returns:
- The client metadata,
nullif not specified or if parsing failed.
-
setOAuthClientMetadata
Sets the OAuth 2.0 client metadata if present for this entity. Corresponds to themetadata.oauth_clientclaim.- Parameters:
clientMetadata- The client metadata,nullif not specified.
-
getASMetadata
Gets the OAuth 2.0 authorisation server metadata if present for this entity. Corresponds to themetadata.oauth_authorization_serverclaim.- Returns:
- The AS metadata,
nullif 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_serverclaim.- Parameters:
asMetadata- The AS metadata,nullif not specified.
-
getFederationEntityMetadata
Gets the federation entity metadata if present for this entity. Corresponds to themetadata.federation_entityclaim.- Returns:
- The federation entity metadata,
nullif not specified or if parsing failed.
-
setFederationEntityMetadata
Sets the federation entity metadata if present for this entity. Corresponds to themetadata.federation_entityclaim.- Parameters:
entityMetadata- The federation entity metadata,nullif not specified.
-
getTrustMarkIssuerMetadata
Deprecated.Gets the trust mark issuer metadata if present for this entity. Corresponds to themetadata.trust_mark_issuerclaim.- Returns:
- The trust mark issuer metadata,
nullif not specified or if parsing failed.
-
getTrustMarks
Gets the trust marks. Corresponds to thetrust_marksclaim.- Returns:
- The trust marks,
nullif not specified or parsing failed.
-
setTrustMarks
Sets the trust marks. Corresponds to thetrust_marksclaim.- Parameters:
marks- The trust marks,nullif not specified.
-