Package org.hawaiiframework.crypto
Class HawaiiUrlSafeStringEncryptor
- java.lang.Object
-
- org.hawaiiframework.crypto.HawaiiStringEncryptor
-
- org.hawaiiframework.crypto.HawaiiUrlSafeStringEncryptor
-
- All Implemented Interfaces:
org.jasypt.encryption.StringEncryptor
public class HawaiiUrlSafeStringEncryptor extends HawaiiStringEncryptor
Hawaii String Encryptor with Url safe base64 encoding.
-
-
Constructor Summary
Constructors Constructor Description HawaiiUrlSafeStringEncryptor(String key, String initVector)
Creates a newHawaiiUrlSafeStringEncryptor
with the given key and init vector.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
decrypt(String encryptedMessage)
Decrypt the encrypted input message.String
encrypt(String message)
Encrypt the input message.-
Methods inherited from class org.hawaiiframework.crypto.HawaiiStringEncryptor
initCipher
-
-
-
-
Method Detail
-
encrypt
public String encrypt(String message)
Encrypt the input message.- Specified by:
encrypt
in interfaceorg.jasypt.encryption.StringEncryptor
- Overrides:
encrypt
in classHawaiiStringEncryptor
- Parameters:
message
- the message to be encrypted- Returns:
- the result of encryption
-
decrypt
public String decrypt(String encryptedMessage)
Decrypt the encrypted input message.- Specified by:
decrypt
in interfaceorg.jasypt.encryption.StringEncryptor
- Overrides:
decrypt
in classHawaiiStringEncryptor
- Parameters:
encryptedMessage
- the message to be decrypted- Returns:
- the result of decryption
-
-