Class JwksSignatureConfigurationProperties
- java.lang.Object
-
- io.micronaut.security.token.jwt.signature.jwks.JwksSignatureConfigurationProperties
-
- All Implemented Interfaces:
JwksSignatureConfiguration
@EachProperty("micronaut.security.token.jwt.signatures.jwks") public class JwksSignatureConfigurationProperties extends java.lang.Object implements JwksSignatureConfigurationJSON Web Key Set (JWKS) Signature Configuration properties holder.- Since:
- 1.1.0
-
-
Field Summary
Fields Modifier and Type Field Description static intDEFAULT_CACHE_EXPIRATIONThe default cache expiration.static com.nimbusds.jose.jwk.KeyTypeDEFAULT_KEYTYPEThe default key type.static java.lang.StringPREFIX
-
Constructor Summary
Constructors Constructor Description JwksSignatureConfigurationProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.IntegergetCacheExpiration()com.nimbusds.jose.jwk.KeyTypegetKeyType()Representation the KeyType for this JWKS signature configuration.@NotNull java.lang.StringgetUrl()Json Web Key Set endpoint url.voidsetCacheExpiration(java.lang.Integer cacheExpiration)JWKS cache expiration.voidsetKeyType(com.nimbusds.jose.jwk.KeyType keyType)Representation of the kty parameter in a JSON Web Key (JWK).voidsetUrl(java.lang.String url)Remote JSON Web Key set url.
-
-
-
Field Detail
-
PREFIX
public static final java.lang.String PREFIX
- See Also:
- Constant Field Values
-
DEFAULT_KEYTYPE
public static final com.nimbusds.jose.jwk.KeyType DEFAULT_KEYTYPE
The default key type.
-
DEFAULT_CACHE_EXPIRATION
public static final int DEFAULT_CACHE_EXPIRATION
The default cache expiration.- See Also:
- Constant Field Values
-
-
Method Detail
-
getCacheExpiration
@NonNull public java.lang.Integer getCacheExpiration()
- Specified by:
getCacheExpirationin interfaceJwksSignatureConfiguration- Returns:
- The number of seconds to cache the JWKS.
-
setCacheExpiration
public void setCacheExpiration(java.lang.Integer cacheExpiration)
JWKS cache expiration. Default value 60 seconds.- Parameters:
cacheExpiration- The expiration
-
getUrl
@NotNull @NonNull public @NotNull java.lang.String getUrl()
Description copied from interface:JwksSignatureConfigurationJson Web Key Set endpoint url.- Specified by:
getUrlin interfaceJwksSignatureConfiguration- Returns:
- URL to the remote JSON Web Key Set.
-
setUrl
public void setUrl(java.lang.String url)
Remote JSON Web Key set url. e.g. https://.../.well-known/jwks.json- Parameters:
url- Remote JSON Web Key set url.
-
getKeyType
@Nullable public com.nimbusds.jose.jwk.KeyType getKeyType()
Description copied from interface:JwksSignatureConfigurationRepresentation the KeyType for this JWKS signature configuration. KeyType is the kty parameter in a JSON Web Key (JWK).- Specified by:
getKeyTypein interfaceJwksSignatureConfiguration- Returns:
- Representation the KeyType for this JWKS signature configuration. KeyType is the kty parameter in a JSON Web Key (JWK).
-
setKeyType
public void setKeyType(com.nimbusds.jose.jwk.KeyType keyType)
Representation of the kty parameter in a JSON Web Key (JWK). Default value (RSA).- Parameters:
keyType- Representation of the kty parameter in a JSON Web Key (JWK).
-
-