Class RSAPrivateKeyInfoKeyPairConverter
java.lang.Object
net.schmizz.sshj.userauth.keyprovider.pkcs.RSAPrivateKeyInfoKeyPairConverter
- All Implemented Interfaces:
KeyPairConverter<org.bouncycastle.asn1.pkcs.PrivateKeyInfo>
class RSAPrivateKeyInfoKeyPairConverter
extends Object
implements KeyPairConverter<org.bouncycastle.asn1.pkcs.PrivateKeyInfo>
Key Pair Converter from RSA Private Key Information to PEM Key Pair
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.bouncycastle.openssl.PEMKeyPair
getKeyPair
(org.bouncycastle.asn1.pkcs.PrivateKeyInfo privateKeyInfo) Get PEM Key Pair parsing RSA Public Key attributes from RSA Private Key Informationprivate org.bouncycastle.asn1.pkcs.RSAPublicKey
getRsaPublicKey
(org.bouncycastle.asn1.pkcs.PrivateKeyInfo privateKeyInfo)
-
Field Details
-
logger
private static final org.slf4j.Logger logger
-
-
Constructor Details
-
RSAPrivateKeyInfoKeyPairConverter
RSAPrivateKeyInfoKeyPairConverter()
-
-
Method Details
-
getKeyPair
public org.bouncycastle.openssl.PEMKeyPair getKeyPair(org.bouncycastle.asn1.pkcs.PrivateKeyInfo privateKeyInfo) throws IOException Get PEM Key Pair parsing RSA Public Key attributes from RSA Private Key Information- Specified by:
getKeyPair
in interfaceKeyPairConverter<org.bouncycastle.asn1.pkcs.PrivateKeyInfo>
- Parameters:
privateKeyInfo
- RSA Private Key Information- Returns:
- PEM Key Pair
- Throws:
IOException
- Thrown on Public Key parsing failures
-
getRsaPublicKey
private org.bouncycastle.asn1.pkcs.RSAPublicKey getRsaPublicKey(org.bouncycastle.asn1.pkcs.PrivateKeyInfo privateKeyInfo) throws IOException - Throws:
IOException
-