Class SecretEncryptionConfiguration


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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.nimbusds.jose.EncryptionMethod getEncryptionMethod()  
      com.nimbusds.jose.JWEAlgorithm getJweAlgorithm()  
      java.lang.String getName()  
      java.lang.String getSecret()  
      void setEncryptionMethod​(com.nimbusds.jose.EncryptionMethod encryptionMethod)
      EncryptionMethod.
      void setJweAlgorithm​(com.nimbusds.jose.JWEAlgorithm jweAlgorithm)
      JWEAlgorithm.
      void setSecret​(java.lang.String secret)
      Secret used for encryption configuration.
      • Methods inherited from class java.lang.Object

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

      • SecretEncryptionConfiguration

        public SecretEncryptionConfiguration​(@Parameter
                                             java.lang.String name)
        Constructor.
        Parameters:
        name - Bean name qualifier.
    • Method Detail

      • getSecret

        public java.lang.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​(java.lang.String secret)
        Secret used for encryption configuration.
        Parameters:
        secret - Encryption secret.
      • getName

        public java.lang.String getName()
        Returns:
        Bean qualifier name.