public class JcaPEMKeyConverter extends Object
Constructor and Description |
---|
JcaPEMKeyConverter() |
Modifier and Type | Method and Description |
---|---|
KeyPair |
getKeyPair(PEMKeyPair keyPair) |
PrivateKey |
getPrivateKey(org.bouncycastle.asn1.pkcs.PrivateKeyInfo privateKeyInfo) |
PublicKey |
getPublicKey(org.bouncycastle.asn1.x509.SubjectPublicKeyInfo publicKeyInfo) |
JcaPEMKeyConverter |
setProvider(Provider provider) |
JcaPEMKeyConverter |
setProvider(String providerName) |
public JcaPEMKeyConverter setProvider(Provider provider)
public JcaPEMKeyConverter setProvider(String providerName)
public KeyPair getKeyPair(PEMKeyPair keyPair) throws PEMException
PEMException
public PublicKey getPublicKey(org.bouncycastle.asn1.x509.SubjectPublicKeyInfo publicKeyInfo) throws PEMException
PEMException
public PrivateKey getPrivateKey(org.bouncycastle.asn1.pkcs.PrivateKeyInfo privateKeyInfo) throws PEMException
PEMException