Class SecretEncryptionConfiguration

java.lang.Object
io.micronaut.security.token.jwt.encryption.secret.SecretEncryptionConfiguration

@EachProperty("micronaut.security.token.jwt.encryptions.secret") public class SecretEncryptionConfiguration extends Object
Encapsulates Secret Encryption Configuration.
Since:
1.0
Author:
Sergio del Amo
  • Constructor Details

    • SecretEncryptionConfiguration

      public SecretEncryptionConfiguration(@Parameter String name)
      Constructor.
      Parameters:
      name - Bean name qualifier.
  • Method Details

    • getSecret

      public String getSecret()
      Returns:
      The secret being used in SecretEncryption
    • getJweAlgorithm

      public com.nimbusds.jose.JWEAlgorithm getJweAlgorithm()
      Returns:
      The JWE algorithm
    • setJweAlgorithm

      public void setJweAlgorithm(com.nimbusds.jose.JWEAlgorithm jweAlgorithm)
      JWEAlgorithm.
      Parameters:
      jweAlgorithm - JWT Algorithm
    • setEncryptionMethod

      public void setEncryptionMethod(com.nimbusds.jose.EncryptionMethod encryptionMethod)
      EncryptionMethod.
      Parameters:
      encryptionMethod - Encryption Method
    • getEncryptionMethod

      public com.nimbusds.jose.EncryptionMethod getEncryptionMethod()
      Returns:
      EncryptionMethod
    • setSecret

      public void setSecret(String secret)
      Secret used for encryption configuration.
      Parameters:
      secret - Encryption secret.
    • getName

      public String getName()
      Returns:
      Bean qualifier name.