public class PemEncrypt
extends java.lang.Object
| 构造器和说明 |
|---|
PemEncrypt() |
| 限定符和类型 | 方法和说明 |
|---|---|
static DecryptResult |
decryptFully(java.lang.String encryptedKey) |
static byte[] |
decryptPrivateKey(java.lang.String encryptPrivateKey)
Decrypt encrypt key
|
static byte[] |
decryptPrivateKeyByFile(java.lang.String filePath)
Decrypt encrypt key from pem file
|
static java.lang.String |
encryptPrivateKey(byte[] privateKey,
EccTypeEnums eccTypeEnums)
Encrypt private key
|
static java.lang.String |
storePrivateKey(byte[] privateKey,
EccTypeEnums eccTypeEnums,
java.lang.String destinationDirectory)
Convert plain private key to PEM format and save to disk
|
static java.lang.String |
storePrivateKey(java.lang.String encryptKey,
java.lang.String fileName,
java.lang.String destinationDirectory) |
public static java.lang.String storePrivateKey(byte[] privateKey,
EccTypeEnums eccTypeEnums,
java.lang.String destinationDirectory)
throws java.lang.Exception
java.lang.Exceptionpublic static java.lang.String storePrivateKey(java.lang.String encryptKey,
java.lang.String fileName,
java.lang.String destinationDirectory)
throws java.lang.Exception
java.lang.Exceptionpublic static java.lang.String encryptPrivateKey(byte[] privateKey,
EccTypeEnums eccTypeEnums)
throws java.lang.Exception
privateKey - eccTypeEnums - java.io.IOExceptionjava.lang.Exceptionpublic static DecryptResult decryptFully(java.lang.String encryptedKey) throws java.lang.Exception
java.lang.Exceptionpublic static byte[] decryptPrivateKey(java.lang.String encryptPrivateKey)
throws java.lang.Exception
encryptPrivateKey - java.io.IOExceptionjava.lang.Exceptionpublic static byte[] decryptPrivateKeyByFile(java.lang.String filePath)
throws java.lang.Exception
filePath - java.io.IOExceptionjava.lang.Exception