Class KeyStoreTextEncryptorLocator

  • All Implemented Interfaces:
    TextEncryptorLocator

    public class KeyStoreTextEncryptorLocator
    extends Object
    implements 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 Detail

      • KeyStoreTextEncryptorLocator

        public KeyStoreTextEncryptorLocator​(org.springframework.security.rsa.crypto.KeyStoreKeyFactory keys,
                                            String defaultSecret,
                                            String defaultAlias)
    • Method Detail

      • setSecretLocator

        public void setSecretLocator​(SecretLocator secretLocator)
        Parameters:
        secretLocator - the secretLocator to set
      • setRsaAlgorithm

        public void setRsaAlgorithm​(org.springframework.security.rsa.crypto.RsaAlgorithm rsaAlgorithm)
      • setStrong

        public void setStrong​(boolean strong)
      • setSalt

        public void setSalt​(String salt)