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.PKCS8EncryptedPrivateKeyInfo
privateKeyInfo
-
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 IPrivateKeyInfo
decryptPrivateKeyInfo(IInputDecryptorProvider decryptorProvider)
Calls actualdecryptPrivateKeyInfo
method for the wrapped PKCS8EncryptedPrivateKeyInfo object.boolean
equals(java.lang.Object o)
Indicates whether some other object is "equal to" this one.org.bouncycastle.pkcs.PKCS8EncryptedPrivateKeyInfo
getPrivateKeyInfo()
Gets actual org.bouncycastle object being wrapped.int
hashCode()
Returns a hash code value based on the wrapped object.java.lang.String
toString()
DelegatestoString
method 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 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
public boolean equals(java.lang.Object o)
Indicates whether some other object is "equal to" this one. Compares wrapped objects.- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
Returns a hash code value based on the wrapped object.- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
DelegatestoString
method call to the wrapped object.- Overrides:
toString
in classjava.lang.Object
-
-