Class AuthClientProviderEncryptionProperties

java.lang.Object
com.broadleafcommerce.auth.client.provider.jpa.autoconfigure.AuthClientProviderEncryptionProperties

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

    • AuthClientProviderEncryptionProperties

      public AuthClientProviderEncryptionProperties()
  • Method Details

    • 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();