Class AuthClientProviderEncryptionProperties


  • @ConfigurationProperties("broadleaf.auth.client.provider.encryption")
    public class AuthClientProviderEncryptionProperties
    extends Object
    Properties used for encrypted columns.
    Author:
    Nathan Moore (nathandmoore)
    • Constructor Detail

      • AuthClientProviderEncryptionProperties

        public AuthClientProviderEncryptionProperties()
    • Method Detail

      • getEncodedKey

        public String getEncodedKey()
        AES secret key used for symmetric encryption of persisted secure data.

        Example key generation using an AES algorithm with a keysize of 256.

         KeyGenerator keyGenerator = javax.crypto.KeyGenerator.getInstance("AES");
         keyGenerator.init(256);
         SecretKey secretKey = keyGenerator.generateKey();
         
      • setEncodedKey

        public void setEncodedKey​(String encodedKey)
        AES secret key used for symmetric encryption of persisted secure data.

        Example key generation using an AES algorithm with a keysize of 256.

         KeyGenerator keyGenerator = javax.crypto.KeyGenerator.getInstance("AES");
         keyGenerator.init(256);
         SecretKey secretKey = keyGenerator.generateKey();