@ConfigurationProperties(value="key-spec") public class KeySpecProperties extends Object
public enum AES {
V1(128), V2(256);
private int value;
private AES(int value) {
this.value = value;
}
public int getValue() {
return this.value;
}
}
| Constructor and Description |
|---|
KeySpecProperties() |
| Modifier and Type | Method and Description |
|---|---|
String |
getAlgorithm() |
String |
getCipherAlgorithm() |
int |
getIterationCount() |
int |
getKeyLength() |
String |
getSalt()
new String(org.springframework.security.crypto.codec.Hex.encode(password.getBytes(charset))
|
TextEncryptor |
getTextEncryptor(String data) |
void |
setAlgorithm(String algorithm) |
void |
setCipherAlgorithm(String cipherAlgorithm) |
void |
setIterationCount(int iterationCount) |
void |
setKeyLength(int keyLength) |
void |
setSalt(String salt) |
public int getIterationCount()
public void setIterationCount(int iterationCount)
public int getKeyLength()
public void setKeyLength(int keyLength)
public void setSalt(String salt)
public String getAlgorithm()
public void setAlgorithm(String algorithm)
public String getCipherAlgorithm()
public void setCipherAlgorithm(String cipherAlgorithm)
public TextEncryptor getTextEncryptor(String data)
public String getSalt()
new String(org.springframework.security.crypto.codec.Hex.encode(password.getBytes(charset))
StandardCharsetsCopyright © 2017 Pivotal Software, Inc.. All rights reserved.