Class 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 Detail

      • PrivateKeyInfoKeyPairConverter

        public PrivateKeyInfoKeyPairConverter()
    • 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 interface KeyPairConverter<org.bouncycastle.asn1.pkcs.PrivateKeyInfo>
        Parameters:
        privateKeyInfo - Private Key Information
        Returns:
        PEM Key Pair
        Throws:
        java.io.IOException - Thrown on conversion failures