Class ByteEncryptorStringEncryptorDelegate

  • All Implemented Interfaces:
    org.jasypt.encryption.StringEncryptor
    Direct Known Subclasses:
    SimpleAsymmetricStringEncryptor, SimpleGCMStringEncryptor

    public class ByteEncryptorStringEncryptorDelegate
    extends Object
    implements org.jasypt.encryption.StringEncryptor
    String Encryptor that delegates always to a ByteEncryptor and converts results to/from Base64 for string representation.
    Version:
    $Id: $Id
    Author:
    Ulises Bocchio
    • Constructor Detail

      • ByteEncryptorStringEncryptorDelegate

        public ByteEncryptorStringEncryptorDelegate​(org.jasypt.encryption.ByteEncryptor delegate)

        Constructor for ByteEncryptorStringEncryptorDelegate.

        Parameters:
        delegate - a ByteEncryptor object
    • Method Detail

      • encrypt

        public String encrypt​(String message)
        Specified by:
        encrypt in interface org.jasypt.encryption.StringEncryptor
      • decrypt

        public String decrypt​(String encryptedMessage)
        Specified by:
        decrypt in interface org.jasypt.encryption.StringEncryptor