Class RSAPrivateKeyInfoKeyPairConverter

  • All Implemented Interfaces:
    KeyPairConverter<org.bouncycastle.asn1.pkcs.PrivateKeyInfo>

    class RSAPrivateKeyInfoKeyPairConverter
    extends java.lang.Object
    implements KeyPairConverter<org.bouncycastle.asn1.pkcs.PrivateKeyInfo>
    Key Pair Converter from RSA Private Key Information to PEM Key Pair
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static org.slf4j.Logger logger  
    • 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 parsing RSA Public Key attributes from RSA Private Key Information
      private org.bouncycastle.asn1.pkcs.RSAPublicKey getRsaPublicKey​(org.bouncycastle.asn1.pkcs.PrivateKeyInfo privateKeyInfo)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • logger

        private static final org.slf4j.Logger logger
    • Constructor Detail

      • 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 parsing RSA Public Key attributes from RSA Private Key Information
        Specified by:
        getKeyPair in interface KeyPairConverter<org.bouncycastle.asn1.pkcs.PrivateKeyInfo>
        Parameters:
        privateKeyInfo - RSA Private Key Information
        Returns:
        PEM Key Pair
        Throws:
        java.io.IOException - Thrown on Public Key parsing failures
      • getRsaPublicKey

        private org.bouncycastle.asn1.pkcs.RSAPublicKey getRsaPublicKey​(org.bouncycastle.asn1.pkcs.PrivateKeyInfo privateKeyInfo)
                                                                 throws java.io.IOException
        Throws:
        java.io.IOException