Class TextEncryptorUtils.FailsafeTextEncryptor

java.lang.Object
org.springframework.cloud.bootstrap.encrypt.TextEncryptorUtils.FailsafeTextEncryptor
All Implemented Interfaces:
org.springframework.security.crypto.encrypt.TextEncryptor
Direct Known Subclasses:
EncryptionBootstrapConfiguration.FailsafeTextEncryptor, TextEncryptorConfigBootstrapper.FailsafeTextEncryptor
Enclosing class:
TextEncryptorUtils

public static class TextEncryptorUtils.FailsafeTextEncryptor extends Object implements org.springframework.security.crypto.encrypt.TextEncryptor
TextEncryptor that just fails, so that users don't get a false sense of security adding ciphers to config files and not getting them decrypted.
Author:
Dave Syer
  • Constructor Details

    • FailsafeTextEncryptor

      public FailsafeTextEncryptor()
  • Method Details

    • encrypt

      public String encrypt(String text)
      Specified by:
      encrypt in interface org.springframework.security.crypto.encrypt.TextEncryptor
    • decrypt

      public String decrypt(String encryptedText)
      Specified by:
      decrypt in interface org.springframework.security.crypto.encrypt.TextEncryptor