Class JwksSignatureConfigurationProperties

  • All Implemented Interfaces:
    JwksSignatureConfiguration

    @EachProperty("micronaut.security.token.jwt.signatures.jwks")
    public class JwksSignatureConfigurationProperties
    extends java.lang.Object
    implements JwksSignatureConfiguration
    JSON Web Key Set (JWKS) Signature Configuration properties holder.
    Since:
    1.1.0
    Author:
    Sergio del Amo
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static com.nimbusds.jose.jwk.KeyType DEFAULT_KEYTYPE
      The default key type.
      static java.lang.String PREFIX  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      @NotNull com.nimbusds.jose.jwk.KeyType getKeyType()
      Representation the KeyType for this JWKS signature configuration.
      @NotNull java.lang.String getUrl()
      Json Web Key Set endpoint url.
      void setKeyType​(com.nimbusds.jose.jwk.KeyType keyType)
      Representation of the kty parameter in a JSON Web Key (JWK).
      void setUrl​(java.lang.String url)
      Remote JSON Web Key set url.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • DEFAULT_KEYTYPE

        public static final com.nimbusds.jose.jwk.KeyType DEFAULT_KEYTYPE
        The default key type.
    • Constructor Detail

      • JwksSignatureConfigurationProperties

        public JwksSignatureConfigurationProperties()
    • Method Detail

      • 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

        @NotNull
        public @NotNull com.nimbusds.jose.jwk.KeyType getKeyType()
        Description copied from interface: JwksSignatureConfiguration
        Representation the KeyType for this JWKS signature configuration. KeyType is the kty parameter in a JSON Web Key (JWK).
        Specified by:
        getKeyType in interface JwksSignatureConfiguration
        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).