Class PrivateKeyInfoKeyPairConverter
- java.lang.Object
-
- net.schmizz.sshj.userauth.keyprovider.pkcs.PrivateKeyInfoKeyPairConverter
-
- All Implemented Interfaces:
KeyPairConverter<org.bouncycastle.asn1.pkcs.PrivateKeyInfo>
public class PrivateKeyInfoKeyPairConverter extends java.lang.Object implements KeyPairConverter<org.bouncycastle.asn1.pkcs.PrivateKeyInfo>
Key Pair Converter for Private Key Information using known Algorithm Object Identifiers
-
-
Field Summary
Fields Modifier and Type Field Description private DSAPrivateKeyInfoKeyPairConverter
dsaPrivateKeyInfoKeyPairConverter
private ECDSAPrivateKeyInfoKeyPairConverter
ecdsaPrivateKeyInfoKeyPairConverter
private RSAPrivateKeyInfoKeyPairConverter
rsaPrivateKeyInfoKeyPairConverter
-
Constructor Summary
Constructors Constructor Description PrivateKeyInfoKeyPairConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.bouncycastle.openssl.PEMKeyPair
getKeyPair(org.bouncycastle.asn1.pkcs.PrivateKeyInfo privateKeyInfo)
Get PEM Key Pair delegating to configured converters based on Algorithm Object Identifier
-
-
-
Field Detail
-
dsaPrivateKeyInfoKeyPairConverter
private DSAPrivateKeyInfoKeyPairConverter dsaPrivateKeyInfoKeyPairConverter
-
ecdsaPrivateKeyInfoKeyPairConverter
private ECDSAPrivateKeyInfoKeyPairConverter ecdsaPrivateKeyInfoKeyPairConverter
-
rsaPrivateKeyInfoKeyPairConverter
private RSAPrivateKeyInfoKeyPairConverter rsaPrivateKeyInfoKeyPairConverter
-
-
Method Detail
-
getKeyPair
public org.bouncycastle.openssl.PEMKeyPair getKeyPair(org.bouncycastle.asn1.pkcs.PrivateKeyInfo privateKeyInfo) throws java.io.IOException
Get PEM Key Pair delegating to configured converters based on Algorithm Object Identifier- Specified by:
getKeyPair
in interfaceKeyPairConverter<org.bouncycastle.asn1.pkcs.PrivateKeyInfo>
- Parameters:
privateKeyInfo
- Private Key Information- Returns:
- PEM Key Pair
- Throws:
java.io.IOException
- Thrown on conversion failures
-
-