Class KeyStoreTextEncryptorLocator
java.lang.Object
org.springframework.cloud.config.server.encryption.KeyStoreTextEncryptorLocator
- All Implemented Interfaces:
TextEncryptorLocator
A
TextEncryptorLocator that pulls RSA key pairs out of a keystore. The input
map can contain entries for "key" or "secret" or both, or neither. The secret in the
input map is not, in general, the secret in the keystore, but is dereferenced through a
SecretLocator (so for example you can keep a table of encrypted secrets and
update it separately to the keystore).- Author:
- Dave Syer
-
Constructor Summary
ConstructorsConstructorDescriptionKeyStoreTextEncryptorLocator(org.springframework.security.crypto.encrypt.KeyStoreKeyFactory keys, String defaultSecret, String defaultAlias) -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.security.crypto.encrypt.TextEncryptorvoidsetRsaAlgorithm(org.springframework.security.crypto.encrypt.RsaAlgorithm rsaAlgorithm) voidvoidsetSecretLocator(SecretLocator secretLocator) voidsetStrong(boolean strong)
-
Constructor Details
-
KeyStoreTextEncryptorLocator
-
-
Method Details
-
setSecretLocator
- Parameters:
secretLocator- the secretLocator to set
-
setRsaAlgorithm
public void setRsaAlgorithm(org.springframework.security.crypto.encrypt.RsaAlgorithm rsaAlgorithm) -
setStrong
public void setStrong(boolean strong) -
setSalt
-
locate
- Specified by:
locatein interfaceTextEncryptorLocator
-