@ConfigurationProperties(value="broadleaf.auth.client.provider.encryption") public class AuthClientProviderEncryptionProperties extends Object
| Constructor and Description |
|---|
AuthClientProviderEncryptionProperties() |
| Modifier and Type | Method and Description |
|---|---|
String |
getEncodedKey()
AES secret key used for symmetric encryption of persisted secure data.
|
void |
setEncodedKey(String encodedKey)
AES secret key used for symmetric encryption of persisted secure data.
|
public AuthClientProviderEncryptionProperties()
public String getEncodedKey()
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();
public void setEncodedKey(String encodedKey)
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();
Copyright © 2021. All rights reserved.