public abstract class EncDecUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static sun.misc.BASE64Decoder |
dec |
static sun.misc.BASE64Encoder |
enc |
| Constructor and Description |
|---|
EncDecUtil() |
| Modifier and Type | Method and Description |
|---|---|
static String |
decXml(byte[] xmlKey,
String encryptionContent)
解密
|
static String |
encXml(byte[] xmlKey,
String xmlContent)
加密
|
static String |
getCertKey(String mi,
String path)
获取证书私钥
|
static String |
getPublicCertKey(String mi,
String path)
获取证书公钥
|
static String |
inputStream2String(InputStream is)
将InputStream转化成String
|
static void |
main(String[] args) |
public static sun.misc.BASE64Decoder dec
public static sun.misc.BASE64Encoder enc
public static String decXml(byte[] xmlKey, String encryptionContent) throws Exception
Exceptionpublic static String encXml(byte[] xmlKey, String xmlContent) throws Exception
Exceptionpublic static String inputStream2String(InputStream is) throws IOException
is - IOExceptionpublic static String getCertKey(String mi, String path)
IOExceptionpublic static String getPublicCertKey(String mi, String path)
IOExceptionpublic static void main(String[] args)
Copyright © 2018. All rights reserved.