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.JcaPEMKeyConverterkeyConverter
-
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 booleanequals(java.lang.Object o)Indicates whether some other object is "equal to" this one.org.bouncycastle.openssl.jcajce.JcaPEMKeyConvertergetKeyConverter()Gets actual org.bouncycastle object being wrapped.java.security.PrivateKeygetPrivateKey(IPrivateKeyInfo privateKeyInfo)Calls actualgetPrivateKeymethod for the wrapped JcaPEMKeyConverter object.inthashCode()Returns a hash code value based on the wrapped object.IJcaPEMKeyConvertersetProvider(java.security.Provider provider)Calls actualsetProvidermethod for the wrapped JcaPEMKeyConverter object.java.lang.StringtoString()DelegatestoStringmethod 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 actualsetProvidermethod for the wrapped JcaPEMKeyConverter object.- Specified by:
setProviderin interfaceIJcaPEMKeyConverter- Parameters:
provider-Providerto be set- Returns:
- this converter
-
getPrivateKey
public java.security.PrivateKey getPrivateKey(IPrivateKeyInfo privateKeyInfo) throws PEMExceptionBC
Calls actualgetPrivateKeymethod for the wrapped JcaPEMKeyConverter object.- Specified by:
getPrivateKeyin interfaceIJcaPEMKeyConverter- Parameters:
privateKeyInfo-IPrivateKeyInfoinformation about private key- Returns:
PrivateKeyprivate 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:
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
-
-