Class EncryptionUtils
- java.lang.Object
-
- org.gcube.spatial.data.geonetwork.utils.EncryptionUtils
-
public class EncryptionUtils extends Object
Utility class for encryption and decryption operations.
-
-
Constructor Summary
Constructors Constructor Description EncryptionUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Stringdecrypt(String toDecrypt)Decrypts the given encrypted string.static Stringencrypt(String toEncrypt)Encrypts the given plain text string.
-
-
-
Method Detail
-
decrypt
public static final String decrypt(String toDecrypt) throws EncryptionException
Decrypts the given encrypted string.- Parameters:
toDecrypt- the string to decrypt- Returns:
- the decrypted string
- Throws:
EncryptionException- if decryption fails
-
encrypt
public static final String encrypt(String toEncrypt) throws EncryptionException
Encrypts the given plain text string.- Parameters:
toEncrypt- the string to encrypt- Returns:
- the encrypted string
- Throws:
EncryptionException- if encryption fails
-
-