Package com.itextpdf.bouncycastle.pkcs
Class PKCS8EncryptedPrivateKeyInfoBC
java.lang.Object
com.itextpdf.bouncycastle.pkcs.PKCS8EncryptedPrivateKeyInfoBC
- All Implemented Interfaces:
-
IPKCS8EncryptedPrivateKeyInfo
Wrapper class for
PKCS8EncryptedPrivateKeyInfo
.
-
Constructor Summary
ConstructorDescriptionPKCS8EncryptedPrivateKeyInfoBC
(org.bouncycastle.pkcs.PKCS8EncryptedPrivateKeyInfo privateKeyInfo) Creates new wrapper instance forPKCS8EncryptedPrivateKeyInfo
. -
Method Summary
Modifier and TypeMethodDescriptiondecryptPrivateKeyInfo
(IInputDecryptorProvider decryptorProvider) Calls actualdecryptPrivateKeyInfo
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
hashCode()
Returns a hash code value based on the wrapped object.toString()
DelegatestoString
method call to the wrapped object.
-
Constructor Details
-
PKCS8EncryptedPrivateKeyInfoBC
public PKCS8EncryptedPrivateKeyInfoBC(org.bouncycastle.pkcs.PKCS8EncryptedPrivateKeyInfo privateKeyInfo) Creates new wrapper instance forPKCS8EncryptedPrivateKeyInfo
.- 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 actualdecryptPrivateKeyInfo
method for the wrapped PKCS8EncryptedPrivateKeyInfo object.- Specified by:
-
decryptPrivateKeyInfo
in interfaceIPKCS8EncryptedPrivateKeyInfo
- Parameters:
-
decryptorProvider
-IInputDecryptorProvider
wrapper to be used during decryption - Returns:
-
IPrivateKeyInfo
wrapper for private key info - Throws:
-
PKCSExceptionBC
-
equals
Indicates whether some other object is "equal to" this one. Compares wrapped objects. -
hashCode
public int hashCode()Returns a hash code value based on the wrapped object. -
toString
DelegatestoString
method call to the wrapped object.
-