Class JcaPEMKeyConverterBC
- java.lang.Object
-
- com.itextpdf.bouncycastle.openssl.jcajce.JcaPEMKeyConverterBC
-
- All Implemented Interfaces:
IJcaPEMKeyConverter
public class JcaPEMKeyConverterBC extends java.lang.Object implements IJcaPEMKeyConverter
Wrapper class forJcaPEMKeyConverter
.
-
-
Field Summary
Fields Modifier and Type Field Description private org.bouncycastle.openssl.jcajce.JcaPEMKeyConverter
keyConverter
-
Constructor Summary
Constructors Constructor Description JcaPEMKeyConverterBC(org.bouncycastle.openssl.jcajce.JcaPEMKeyConverter keyConverter)
Creates new wrapper instance forJcaPEMKeyConverter
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
Indicates whether some other object is "equal to" this one.org.bouncycastle.openssl.jcajce.JcaPEMKeyConverter
getKeyConverter()
Gets actual org.bouncycastle object being wrapped.java.security.PrivateKey
getPrivateKey(IPrivateKeyInfo privateKeyInfo)
Calls actualgetPrivateKey
method for the wrapped JcaPEMKeyConverter object.int
hashCode()
Returns a hash code value based on the wrapped object.IJcaPEMKeyConverter
setProvider(java.security.Provider provider)
Calls actualsetProvider
method for the wrapped JcaPEMKeyConverter object.java.lang.String
toString()
DelegatestoString
method call to the wrapped object.
-
-
-
Method Detail
-
getKeyConverter
public org.bouncycastle.openssl.jcajce.JcaPEMKeyConverter getKeyConverter()
Gets actual org.bouncycastle object being wrapped.- Returns:
- wrapped
JcaPEMKeyConverter
.
-
setProvider
public IJcaPEMKeyConverter setProvider(java.security.Provider provider)
Calls actualsetProvider
method for the wrapped JcaPEMKeyConverter object.- Specified by:
setProvider
in interfaceIJcaPEMKeyConverter
- Parameters:
provider
-Provider
to be set- Returns:
- this converter
-
getPrivateKey
public java.security.PrivateKey getPrivateKey(IPrivateKeyInfo privateKeyInfo) throws PEMExceptionBC
Calls actualgetPrivateKey
method for the wrapped JcaPEMKeyConverter object.- Specified by:
getPrivateKey
in interfaceIJcaPEMKeyConverter
- Parameters:
privateKeyInfo
-IPrivateKeyInfo
information about private key- Returns:
PrivateKey
private key instance- Throws:
PEMExceptionBC
-
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
-
-