EncryptionUtility Class
- java.
lang. Object - system.
fabric. EncryptionUtility
- system.
public class EncryptionUtility
Utility class to perform encryption and decryption operations.
Method Summary
Modifier and Type | Method and Description |
---|---|
char [] |
decryptText(String textToDecrypt)
Decrypted the encrypted text. The certificate(.pem) file should be present in the /var/lib/sfcerts folder. |
String |
encryptText(char []textToEncrypt, String certPath)
Encrypts the text with the given certificate file. |
String |
encryptText(char []textToEncrypt, String certPath, String algorithmOid)
Encrypts the text with the given certificate file. |
String |
encryptText(String textToEncrypt, String certPath)
Encrypts the text with the given certificate file. |
String |
encryptText(String textToEncrypt, String certPath, String algorithmOid)
Encrypts the text with the given certificate file. |
Method Details
decryptText
public static char [] decryptText(String textToDecrypt)
Decrypted the encrypted text. The certificate(.pem) file should be present in the /var/lib/sfcerts folder.
Parameters:
Returns:
encryptText
public static String encryptText(char []textToEncrypt, String certPath)
Encrypts the text with the given certificate file.
Parameters:
Returns:
encryptText
public static String encryptText(char []textToEncrypt, String certPath, String algorithmOid)
Encrypts the text with the given certificate file.
Parameters:
Returns:
encryptText
public static String encryptText(String textToEncrypt, String certPath)
Encrypts the text with the given certificate file.
Parameters:
Returns:
encryptText
public static String encryptText(String textToEncrypt, String certPath, String algorithmOid)
Encrypts the text with the given certificate file.
Parameters:
Returns:
Applies to
Azure SDK for Java