Package org.apache.sling.commons.crypto
Interface CryptoService
-
- All Known Implementing Classes:
JasyptStandardPBEStringCryptoService
@ProviderType public interface CryptoService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NotNull java.lang.Stringdecrypt(@NotNull java.lang.String ciphertext)@NotNull java.lang.Stringencrypt(@NotNull java.lang.String message)
-
-
-
Method Detail
-
encrypt
@NotNull @NotNull java.lang.String encrypt(@NotNull @NotNull java.lang.String message)- Parameters:
message- The message to encrypt- Returns:
- The encrypted message, the ciphertext
-
decrypt
@NotNull @NotNull java.lang.String decrypt(@NotNull @NotNull java.lang.String ciphertext)- Parameters:
ciphertext- The encrypted message, the ciphertext to decrypt- Returns:
- The decrypted message
-
-