Class JasyptStandardPbeStringCryptoService
- java.lang.Object
-
- org.apache.sling.commons.crypto.jasypt.internal.JasyptStandardPbeStringCryptoService
-
- All Implemented Interfaces:
CryptoService
public final class JasyptStandardPbeStringCryptoService extends Object implements CryptoService
Service for encrypting messages and decrypting ciphertexts using Jasypt'sStandardPBEStringEncryptor.- See Also:
StandardPBEStringEncryptor
-
-
Constructor Summary
Constructors Constructor Description JasyptStandardPbeStringCryptoService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull Stringdecrypt(@NotNull String ciphertext)Decrypts the given ciphertext.@NotNull Stringencrypt(@NotNull String message)Encrypts the given message.
-
-
-
Method Detail
-
encrypt
@NotNull public @NotNull String encrypt(@NotNull @NotNull String message)
Description copied from interface:CryptoServiceEncrypts the given message.- Specified by:
encryptin interfaceCryptoService- Parameters:
message- The message to encrypt- Returns:
- The encrypted message, the ciphertext
-
decrypt
@NotNull public @NotNull String decrypt(@NotNull @NotNull String ciphertext)
Description copied from interface:CryptoServiceDecrypts the given ciphertext.- Specified by:
decryptin interfaceCryptoService- Parameters:
ciphertext- The encrypted message, the ciphertext to decrypt- Returns:
- The decrypted message
-
-