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
-
-
Constructor Summary
Constructors Constructor Description PrivateKeyInfoKeyPairConverter()
-
Method Summary
Modifier and Type Method Description org.bouncycastle.openssl.PEMKeyPairgetKeyPair(org.bouncycastle.asn1.pkcs.PrivateKeyInfo privateKeyInfo)Get PEM Key Pair delegating to configured converters based on Algorithm Object Identifier
-
-
-
Method Detail
-
getKeyPair
public org.bouncycastle.openssl.PEMKeyPair getKeyPair(org.bouncycastle.asn1.pkcs.PrivateKeyInfo privateKeyInfo) throws java.io.IOExceptionGet PEM Key Pair delegating to configured converters based on Algorithm Object Identifier- Specified by:
getKeyPairin interfaceKeyPairConverter<org.bouncycastle.asn1.pkcs.PrivateKeyInfo>- Parameters:
privateKeyInfo- Private Key Information- Returns:
- PEM Key Pair
- Throws:
java.io.IOException- Thrown on conversion failures
-
-