Class JwksSignatureConfigurationProperties
java.lang.Object
io.micronaut.security.token.jwt.signature.jwks.JwksSignatureConfigurationProperties
- All Implemented Interfaces:
io.micronaut.core.naming.Named,JwksSignatureConfiguration
@EachProperty("micronaut.security.token.jwt.signatures.jwks")
public class JwksSignatureConfigurationProperties
extends Object
implements JwksSignatureConfiguration
JSON Web Key Set (JWKS) Signature Configuration properties holder.
- Since:
- 1.1.0
- Author:
- Sergio del Amo
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe default cache expiration.static final com.nimbusds.jose.jwk.KeyTypeThe default key type.static final String -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescription@NonNull IntegerDeprecated, for removal: This API element is subject to removal in a future version.Not used.@Nullable com.nimbusds.jose.jwk.KeyTypeRepresentation the KeyType for this JWKS signature configuration.@NonNull StringgetName()@NotNull @NonNull StringgetUrl()Json Web Key Set endpoint url.voidsetCacheExpiration(Integer cacheExpiration) Deprecated, for removal: This API element is subject to removal in a future version.Not used.voidsetKeyType(com.nimbusds.jose.jwk.KeyType keyType) Representation of the kty parameter in a JSON Web Key (JWK).voidRemote JSON Web Key set url.
-
Field Details
-
PREFIX
- See Also:
-
DEFAULT_KEYTYPE
public static final com.nimbusds.jose.jwk.KeyType DEFAULT_KEYTYPEThe default key type. -
DEFAULT_CACHE_EXPIRATION
public static final int DEFAULT_CACHE_EXPIRATIONThe default cache expiration.- See Also:
-
-
Constructor Details
-
JwksSignatureConfigurationProperties
Deprecated, for removal: This API element is subject to removal in a future version. -
JwksSignatureConfigurationProperties
-
-
Method Details
-
getName
- Specified by:
getNamein interfaceio.micronaut.core.naming.Named
-
getCacheExpiration
Deprecated, for removal: This API element is subject to removal in a future version.Not used. JWKS is cached via Micronaut Cache. You need an implementation of Micronaut Cache and the cache configuration micronaut.caches.jwks.expire-after-write- Specified by:
getCacheExpirationin interfaceJwksSignatureConfiguration- Returns:
- The number of seconds to cache the JWKS.
-
setCacheExpiration
@Deprecated(forRemoval=true, since="4.11.0") public void setCacheExpiration(Integer cacheExpiration) Deprecated, for removal: This API element is subject to removal in a future version.Not used. JWKS is cached via Micronaut Cache. You need an implementation of Micronaut Cache and the cache configuration micronaut.caches.jwks.expire-after-writeJWKS cache expiration. Default value 60 seconds.- Parameters:
cacheExpiration- The expiration
-
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
Remote JSON Web Key set url. e.g. https://.../.well-known/jwks.json- Parameters:
url- Remote JSON Web Key set url.
-
getKeyType
@Nullable public @Nullable 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).
-
JwksSignatureConfigurationProperties(java.lang.String)instead.