Class JasyptStandardPBEStringCryptoService

  • All Implemented Interfaces:
    CryptoService

    public class JasyptStandardPBEStringCryptoService
    extends java.lang.Object
    implements CryptoService
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      @NotNull java.lang.String decrypt​(@NotNull java.lang.String ciphertext)  
      @NotNull java.lang.String encrypt​(@NotNull java.lang.String message)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JasyptStandardPBEStringCryptoService

        public JasyptStandardPBEStringCryptoService()
    • Method Detail

      • encrypt

        @NotNull
        public @NotNull java.lang.String encrypt​(@NotNull
                                                 @NotNull java.lang.String message)
        Specified by:
        encrypt in interface CryptoService
        Parameters:
        message - The message to encrypt
        Returns:
        The encrypted message, the ciphertext
      • decrypt

        @NotNull
        public @NotNull java.lang.String decrypt​(@NotNull
                                                 @NotNull java.lang.String ciphertext)
        Specified by:
        decrypt in interface CryptoService
        Parameters:
        ciphertext - The encrypted message, the ciphertext to decrypt
        Returns:
        The decrypted message