Class PKCS8EncryptedPrivateKeyInfoBC

java.lang.Object
com.itextpdf.bouncycastle.pkcs.PKCS8EncryptedPrivateKeyInfoBC
All Implemented Interfaces:
IPKCS8EncryptedPrivateKeyInfo

public class PKCS8EncryptedPrivateKeyInfoBC extends Object implements IPKCS8EncryptedPrivateKeyInfo
Wrapper class for PKCS8EncryptedPrivateKeyInfo.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final org.bouncycastle.pkcs.PKCS8EncryptedPrivateKeyInfo
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    PKCS8EncryptedPrivateKeyInfoBC(org.bouncycastle.pkcs.PKCS8EncryptedPrivateKeyInfo privateKeyInfo)
    Creates new wrapper instance for PKCS8EncryptedPrivateKeyInfo.
  • Method Summary

    Modifier and Type
    Method
    Description
    Calls actual decryptPrivateKeyInfo method for the wrapped PKCS8EncryptedPrivateKeyInfo object.
    boolean
    Indicates whether some other object is "equal to" this one.
    org.bouncycastle.pkcs.PKCS8EncryptedPrivateKeyInfo
    Gets actual org.bouncycastle object being wrapped.
    int
    Returns a hash code value based on the wrapped object.
    Delegates toString method call to the wrapped object.

    Methods inherited from class java.lang.Object

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

    • privateKeyInfo

      private final org.bouncycastle.pkcs.PKCS8EncryptedPrivateKeyInfo privateKeyInfo
  • Constructor Details

    • PKCS8EncryptedPrivateKeyInfoBC

      public PKCS8EncryptedPrivateKeyInfoBC(org.bouncycastle.pkcs.PKCS8EncryptedPrivateKeyInfo privateKeyInfo)
      Creates new wrapper instance for PKCS8EncryptedPrivateKeyInfo.
      Parameters:
      privateKeyInfo - PKCS8EncryptedPrivateKeyInfo to be wrapped
  • Method Details

    • getPrivateKeyInfo

      public org.bouncycastle.pkcs.PKCS8EncryptedPrivateKeyInfo getPrivateKeyInfo()
      Gets actual org.bouncycastle object being wrapped.
      Returns:
      wrapped PKCS8EncryptedPrivateKeyInfo.
    • decryptPrivateKeyInfo

      public IPrivateKeyInfo decryptPrivateKeyInfo(IInputDecryptorProvider decryptorProvider) throws PKCSExceptionBC
      Calls actual decryptPrivateKeyInfo method for the wrapped PKCS8EncryptedPrivateKeyInfo object.
      Specified by:
      decryptPrivateKeyInfo in interface IPKCS8EncryptedPrivateKeyInfo
      Parameters:
      decryptorProvider - IInputDecryptorProvider wrapper to be used during decryption
      Returns:
      IPrivateKeyInfo wrapper for private key info
      Throws:
      PKCSExceptionBC
    • 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