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
public abstract class CommonFederationClaimsSet extends CommonClaimsSet
Common federation claims set.
-
-
Field Summary
Fields Modifier and Type Field Description static StringEXP_CLAIM_NAMEThe expiration time claim name.static StringMETADATA_CLAIM_NAMEThe metadata claim name.static StringTRUST_MARKS_CLAIM_NAMEThe 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
Constructors Modifier Constructor Description protectedCommonFederationClaimsSet()Creates 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
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description AuthorizationServerMetadatagetASMetadata()Gets the OAuth 2.0 authorisation server metadata if present for this entity.DategetExpirationTime()Gets the entity statement expiration time.FederationEntityMetadatagetFederationEntityMetadata()Gets the federation entity metadata if present for this entity.EntityIDgetIssuerEntityID()Returns the issuer as entity ID.net.minidev.json.JSONObjectgetMetadata(EntityType type)Gets the metadata for the specified entity type.ClientMetadatagetOAuthClientMetadata()Gets the OAuth 2.0 client metadata if present for this entity.OIDCProviderMetadatagetOPMetadata()Gets the OpenID provider metadata if present for this entity.OIDCClientMetadatagetRPMetadata()Gets the OpenID relying party metadata if present for this entity.EntityIDgetSubjectEntityID()Returns the subject as entity ID.TrustMarkIssuerMetadatagetTrustMarkIssuerMetadata()Deprecated.List<TrustMarkEntry>getTrustMarks()Gets the trust marks.voidsetTrustMarks(List<TrustMarkEntry> marks)Sets the trust marks.protected voidvalidateRequiredClaimsPresence()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
-
-
-
-
Field Detail
-
EXP_CLAIM_NAME
public static final String EXP_CLAIM_NAME
The expiration time claim name.- See Also:
- Constant Field Values
-
METADATA_CLAIM_NAME
public static final String METADATA_CLAIM_NAME
The metadata claim name.- See Also:
- Constant Field Values
-
TRUST_MARKS_CLAIM_NAME
public static final String TRUST_MARKS_CLAIM_NAME
The trust marks claim name.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CommonFederationClaimsSet
protected CommonFederationClaimsSet()
Creates a new empty common federation claims set.
-
CommonFederationClaimsSet
protected CommonFederationClaimsSet(net.minidev.json.JSONObject jsonObject)
Creates a new common federation claims set from the specified JSON object.- Parameters:
jsonObject- The JSON object. Must not benull.
-
-
Method Detail
-
validateRequiredClaimsPresence
protected void validateRequiredClaimsPresence() throws ParseException
Validates this claims set for having all minimum required claims.- Throws:
ParseException- If the validation failed and a required claim is missing.
-
getIssuerEntityID
public EntityID getIssuerEntityID()
Returns the issuer as entity ID. Corresponds to theissclaim.- Returns:
- The issuer as entity ID.
-
getSubjectEntityID
public EntityID getSubjectEntityID()
Returns the subject as entity ID. Corresponds to theissclaim.- Returns:
- The subject as entity ID.
-
getExpirationTime
public Date getExpirationTime()
Gets the entity statement expiration time. Corresponds to theexpclaim.- Returns:
- The expiration time,
nullif not specified or parsing failed.
-
getMetadata
public net.minidev.json.JSONObject getMetadata(EntityType type)
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.
-
getRPMetadata
public OIDCClientMetadata 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.
-
getOPMetadata
public OIDCProviderMetadata 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.
-
getOAuthClientMetadata
public ClientMetadata 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.
-
getASMetadata
public AuthorizationServerMetadata 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.
-
getFederationEntityMetadata
public FederationEntityMetadata 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.
-
getTrustMarkIssuerMetadata
@Deprecated public TrustMarkIssuerMetadata 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
public List<TrustMarkEntry> getTrustMarks()
Gets the trust marks. Corresponds to thetrust_marksclaim.- Returns:
- The trust marks,
nullif not specified or parsing failed.
-
setTrustMarks
public void setTrustMarks(List<TrustMarkEntry> marks)
Sets the trust marks. Corresponds to thetrust_marksclaim.- Parameters:
marks- The trust marks,nullif not specified.
-
-