Package org.forgerock.oauth2.core
Class TrustedJwtIssuerConfig
java.lang.Object
org.forgerock.oauth2.core.TrustedJwtIssuerConfig
A trusted JWT issuer for use in validating a JWT bearer grant.
-
Constructor Summary
ConstructorsConstructorDescriptionTrustedJwtIssuerConfig(String issuer, String resourceOwnerIdentityClaim, String consentedScopesClaim, String[] allowedSubjects, String jwkSet, String jwksUri, String jwksCacheTimeout, String jwksCacheMissTimeout) A script-friendly constructor to create configuration for a Trusted JWT Issuer.TrustedJwtIssuerConfig(String issuer, String resourceOwnerIdentityClaim, String consentedScopesClaim, Set<String> allowedSubjects, String jwkSet, String jwksUri, Duration jwksCacheTimeout, Duration jwksCacheMissTimeout) Create configuration for a Trusted JWT Issuer. -
Method Summary
Modifier and TypeMethodDescriptionThe set of subject identifiers that are allowed to be asserted by this JWT issuer.The claim in the JWT that indicates which scopes have been consented by the resource owner.The allowed issuer of the JWT.The duration to retain the failure to obtain a JWK Set from thegetJwksUri()in the cache.The duration to retain the JWK Set obtained from thegetJwksUri()in the cache.A JWK encoded set of public keys that are valid for the JWT issuer to use in signing JWTs.A URI for a JWK encoded set of public keys that are valid for the JWT issuer to use in signing JWTs.The claim in the JWT that will contain the resource owner identifier.
-
Constructor Details
-
TrustedJwtIssuerConfig
public TrustedJwtIssuerConfig(String issuer, String resourceOwnerIdentityClaim, String consentedScopesClaim, Set<String> allowedSubjects, String jwkSet, String jwksUri, Duration jwksCacheTimeout, Duration jwksCacheMissTimeout) Create configuration for a Trusted JWT Issuer.- Parameters:
issuer- the value forgetIssuer()resourceOwnerIdentityClaim- the value forgetResourceOwnerIdentityClaim()consentedScopesClaim- the value forgetConsentedScopesClaim()allowedSubjects- the value forgetAllowedSubjects()jwkSet- the value forgetJwkSet()jwksUri- the value forgetJwksUri()jwksCacheTimeout- the value forgetJwksCacheTimeout()jwksCacheMissTimeout- the value forgetJwksCacheMissTimeout()
-
TrustedJwtIssuerConfig
public TrustedJwtIssuerConfig(String issuer, String resourceOwnerIdentityClaim, String consentedScopesClaim, String[] allowedSubjects, String jwkSet, String jwksUri, String jwksCacheTimeout, String jwksCacheMissTimeout) A script-friendly constructor to create configuration for a Trusted JWT Issuer.- Parameters:
issuer- the value forgetIssuer()resourceOwnerIdentityClaim- the value forgetResourceOwnerIdentityClaim()consentedScopesClaim- the value forgetConsentedScopesClaim()allowedSubjects- the value forgetAllowedSubjects()jwkSet- the value forgetJwkSet()jwksUri- the value forgetJwksUri()jwksCacheTimeout- the value forgetJwksCacheTimeout()jwksCacheMissTimeout- the value forgetJwksCacheMissTimeout()
-
-
Method Details
-
getIssuer
The allowed issuer of the JWT.- Returns:
- the issuer string
-
getResourceOwnerIdentityClaim
The claim in the JWT that will contain the resource owner identifier.- Returns:
- the claim name
-
getConsentedScopesClaim
The claim in the JWT that indicates which scopes have been consented by the resource owner.- Returns:
- the claim name
-
getAllowedSubjects
The set of subject identifiers that are allowed to be asserted by this JWT issuer. If empty, all subjects are allowed.- Returns:
- the set of subject identifiers
-
getJwkSet
A JWK encoded set of public keys that are valid for the JWT issuer to use in signing JWTs. Either this orgetJwksUri()must return a value.- Returns:
- a string representation of a JWK Set
-
getJwksUri
A URI for a JWK encoded set of public keys that are valid for the JWT issuer to use in signing JWTs. Either this orgetJwkSet()must return a value.- Returns:
- a string representation of a JWK Set
-
getJwksCacheTimeout
The duration to retain the JWK Set obtained from thegetJwksUri()in the cache.- Returns:
- a cache timeout duration
-
getJwksCacheMissTimeout
The duration to retain the failure to obtain a JWK Set from thegetJwksUri()in the cache.- Returns:
- a cache timeout duration
-