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
Comentarios
https://aka.ms/ContentUserFeedback.
Próximamente: A lo largo de 2024 iremos eliminando gradualmente GitHub Issues como mecanismo de comentarios sobre el contenido y lo sustituiremos por un nuevo sistema de comentarios. Para más información, vea:Enviar y ver comentarios de