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
    • Method Summary

      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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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