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 Object implements KeyPairConverter<org.bouncycastle.asn1.pkcs.PrivateKeyInfo>
Key Pair Converter for Private Key Information using known Algorithm Object Identifiers
  • Field Details

  • Constructor Details

    • PrivateKeyInfoKeyPairConverter

      public PrivateKeyInfoKeyPairConverter()
  • Method Details

    • getKeyPair

      public org.bouncycastle.openssl.PEMKeyPair getKeyPair(org.bouncycastle.asn1.pkcs.PrivateKeyInfo privateKeyInfo) throws 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:
      IOException - Thrown on conversion failures