public class PEMCollection extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
PEMCollection.RawPrivateKey |
| Modifier and Type | Field and Description |
|---|---|
static String |
BOUNCY_CASTLE_ENCRYPTION_ALGORITHM |
static String |
CIPHER_TRANSFORMATION |
static String |
SECRET_KEY_ALGORITHM |
static String |
SECRET_KEY_FACTORY_ALGORITHM |
static int |
SECRET_KEY_LENGTH_BITS |
| Constructor and Description |
|---|
PEMCollection() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
derCertificate() |
List<byte[]> |
derCertificateChain() |
PEMCollection.RawPrivateKey |
derPrivateKey() |
static PEMCollection |
fromResponse(String body,
ChainOption chainOption,
PrivateKey privateKey,
String privateKeyPassword) |
static SecretKeySpec |
passwordToCipherSecretKey(char[] password,
byte[] iv) |
String |
pemCertificate() |
String |
pemCertificateChain() |
String |
pemPrivateKey() |
byte[] |
toJks(String password) |
byte[] |
toPkcs12(String password) |
public static final String BOUNCY_CASTLE_ENCRYPTION_ALGORITHM
public static final String CIPHER_TRANSFORMATION
public static final String SECRET_KEY_FACTORY_ALGORITHM
public static final String SECRET_KEY_ALGORITHM
public static final int SECRET_KEY_LENGTH_BITS
public static PEMCollection fromResponse(String body, ChainOption chainOption, PrivateKey privateKey, String privateKeyPassword) throws VCertException
VCertExceptionpublic String pemCertificate()
public String pemPrivateKey()
public String pemCertificateChain()
public byte[] derCertificate()
public PEMCollection.RawPrivateKey derPrivateKey()
public List<byte[]> derCertificateChain()
public byte[] toPkcs12(String password) throws org.bouncycastle.pkcs.PKCSException
org.bouncycastle.pkcs.PKCSExceptionpublic byte[] toJks(String password) throws KeyStoreException, CertificateException
public static SecretKeySpec passwordToCipherSecretKey(char[] password, byte[] iv) throws NoSuchAlgorithmException, InvalidKeySpecException
Copyright © 2021. All rights reserved.