Class JcaPEMKeyConverterBC

java.lang.Object
com.itextpdf.bouncycastle.openssl.jcajce.JcaPEMKeyConverterBC
All Implemented Interfaces:
IJcaPEMKeyConverter

public class JcaPEMKeyConverterBC extends Object implements IJcaPEMKeyConverter
Wrapper class for JcaPEMKeyConverter.
  • Constructor Summary

    Constructors
    Constructor
    Description
    JcaPEMKeyConverterBC(org.bouncycastle.openssl.jcajce.JcaPEMKeyConverter keyConverter)
    Creates new wrapper instance for JcaPEMKeyConverter.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Indicates whether some other object is "equal to" this one.
    org.bouncycastle.openssl.jcajce.JcaPEMKeyConverter
    Gets actual org.bouncycastle object being wrapped.
    getPrivateKey(IPrivateKeyInfo privateKeyInfo)
    Calls actual getPrivateKey method for the wrapped JcaPEMKeyConverter object.
    int
    Returns a hash code value based on the wrapped object.
    setProvider(Provider provider)
    Calls actual setProvider method for the wrapped JcaPEMKeyConverter object.
    Delegates toString method call to the wrapped object.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • JcaPEMKeyConverterBC

      public JcaPEMKeyConverterBC (org.bouncycastle.openssl.jcajce.JcaPEMKeyConverter keyConverter)
      Creates new wrapper instance for JcaPEMKeyConverter.
      Parameters:
      keyConverter - JcaPEMKeyConverter to be wrapped
  • Method Details

    • getKeyConverter

      public org.bouncycastle.openssl.jcajce.JcaPEMKeyConverter getKeyConverter()
      Gets actual org.bouncycastle object being wrapped.
      Returns:
      wrapped JcaPEMKeyConverter.
    • setProvider

      public IJcaPEMKeyConverter setProvider (Provider provider)
      Calls actual setProvider method for the wrapped JcaPEMKeyConverter object.
      Specified by:
      setProvider in interface IJcaPEMKeyConverter
      Parameters:
      provider - Provider to be set
      Returns:
      this converter
    • getPrivateKey

      public PrivateKey getPrivateKey (IPrivateKeyInfo privateKeyInfo) throws PEMExceptionBC
      Calls actual getPrivateKey method for the wrapped JcaPEMKeyConverter object.
      Specified by:
      getPrivateKey in interface IJcaPEMKeyConverter
      Parameters:
      privateKeyInfo - IPrivateKeyInfo information about private key
      Returns:
      PrivateKey private key instance
      Throws:
      PEMExceptionBC
    • equals

      public boolean equals (Object o)
      Indicates whether some other object is "equal to" this one. Compares wrapped objects.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Returns a hash code value based on the wrapped object.
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Delegates toString method call to the wrapped object.
      Overrides:
      toString in class Object