你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
EncryptionUtility 类
- java.
lang. Object - system.
fabric. EncryptionUtility
- system.
public class EncryptionUtility
用于执行加密和解密操作的实用工具类。
方法摘要
修饰符和类型 | 方法和描述 |
---|---|
char [] |
decryptText(String textToDecrypt)
解密了加密文本。 证书 (.pem) 文件应位于 /var/lib/sfcerts 文件夹中。 |
String |
encryptText(char []textToEncrypt, String certPath)
使用给定的证书文件加密文本。 |
String |
encryptText(char []textToEncrypt, String certPath, String algorithmOid)
使用给定的证书文件加密文本。 |
String |
encryptText(String textToEncrypt, String certPath)
使用给定的证书文件加密文本。 |
String |
encryptText(String textToEncrypt, String certPath, String algorithmOid)
使用给定的证书文件加密文本。 |
方法详细信息
decryptText
public static char [] decryptText(String textToDecrypt)
解密了加密文本。 证书 (.pem) 文件应位于 /var/lib/sfcerts 文件夹中。
参数:
返回:
encryptText
public static String encryptText(char []textToEncrypt, String certPath)
使用给定的证书文件加密文本。
参数:
返回:
encryptText
public static String encryptText(char []textToEncrypt, String certPath, String algorithmOid)
使用给定的证书文件加密文本。
参数:
返回:
encryptText
public static String encryptText(String textToEncrypt, String certPath)
使用给定的证书文件加密文本。
参数:
返回:
encryptText
public static String encryptText(String textToEncrypt, String certPath, String algorithmOid)
使用给定的证书文件加密文本。
参数:
返回: