Package com.itextpdf.bouncycastle.pkcs
Class PKCS8EncryptedPrivateKeyInfoBC
- java.lang.Object
-
- com.itextpdf.bouncycastle.pkcs.PKCS8EncryptedPrivateKeyInfoBC
-
- All Implemented Interfaces:
IPKCS8EncryptedPrivateKeyInfo
public class PKCS8EncryptedPrivateKeyInfoBC extends java.lang.Object implements IPKCS8EncryptedPrivateKeyInfo
Wrapper class forPKCS8EncryptedPrivateKeyInfo.
-
-
Field Summary
Fields Modifier and Type Field Description private org.bouncycastle.pkcs.PKCS8EncryptedPrivateKeyInfoprivateKeyInfo
-
Constructor Summary
Constructors Constructor Description PKCS8EncryptedPrivateKeyInfoBC(org.bouncycastle.pkcs.PKCS8EncryptedPrivateKeyInfo privateKeyInfo)Creates new wrapper instance forPKCS8EncryptedPrivateKeyInfo.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IPrivateKeyInfodecryptPrivateKeyInfo(IInputDecryptorProvider decryptorProvider)Calls actualdecryptPrivateKeyInfomethod for the wrapped PKCS8EncryptedPrivateKeyInfo object.booleanequals(java.lang.Object o)Indicates whether some other object is "equal to" this one.org.bouncycastle.pkcs.PKCS8EncryptedPrivateKeyInfogetPrivateKeyInfo()Gets actual org.bouncycastle object being wrapped.inthashCode()Returns a hash code value based on the wrapped object.java.lang.StringtoString()DelegatestoStringmethod call to the wrapped object.
-
-
-
Method Detail
-
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 actualdecryptPrivateKeyInfomethod for the wrapped PKCS8EncryptedPrivateKeyInfo object.- Specified by:
decryptPrivateKeyInfoin interfaceIPKCS8EncryptedPrivateKeyInfo- Parameters:
decryptorProvider-IInputDecryptorProviderwrapper to be used during decryption- Returns:
IPrivateKeyInfowrapper for private key info- Throws:
PKCSExceptionBC
-
equals
public boolean equals(java.lang.Object o)
Indicates whether some other object is "equal to" this one. Compares wrapped objects.- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
Returns a hash code value based on the wrapped object.- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
DelegatestoStringmethod call to the wrapped object.- Overrides:
toStringin classjava.lang.Object
-
-