Package com.itextpdf.bouncycastle.cert
Class X509ExtensionUtilsBC
- java.lang.Object
-
- com.itextpdf.bouncycastle.cert.X509ExtensionUtilsBC
-
- All Implemented Interfaces:
IX509ExtensionUtils
public class X509ExtensionUtilsBC extends java.lang.Object implements IX509ExtensionUtils
Wrapper class forX509ExtensionUtils
.
-
-
Field Summary
Fields Modifier and Type Field Description private org.bouncycastle.cert.X509ExtensionUtils
extensionUtils
-
Constructor Summary
Constructors Constructor Description X509ExtensionUtilsBC(IDigestCalculator digestCalculator)
Creates new wrapper instance forX509ExtensionUtils
.X509ExtensionUtilsBC(org.bouncycastle.cert.X509ExtensionUtils extensionUtils)
Creates new wrapper instance forX509ExtensionUtils
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IAuthorityKeyIdentifier
createAuthorityKeyIdentifier(ISubjectPublicKeyInfo publicKeyInfo)
Calls actualcreateAuthorityKeyIdentifier
method for the wrapped X509ExtensionUtils object.ISubjectKeyIdentifier
createSubjectKeyIdentifier(ISubjectPublicKeyInfo publicKeyInfo)
Calls actualcreateSubjectKeyIdentifier
method for the wrapped X509ExtensionUtils object.boolean
equals(java.lang.Object o)
Indicates whether some other object is "equal to" this one.org.bouncycastle.cert.X509ExtensionUtils
getExtensionUtils()
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.
-
-
-
Constructor Detail
-
X509ExtensionUtilsBC
public X509ExtensionUtilsBC(org.bouncycastle.cert.X509ExtensionUtils extensionUtils)
Creates new wrapper instance forX509ExtensionUtils
.- Parameters:
extensionUtils
-X509ExtensionUtils
to be wrapped
-
X509ExtensionUtilsBC
public X509ExtensionUtilsBC(IDigestCalculator digestCalculator)
Creates new wrapper instance forX509ExtensionUtils
.- Parameters:
digestCalculator
- DigestCalculator wrapper to createX509ExtensionUtils
-
-
Method Detail
-
getExtensionUtils
public org.bouncycastle.cert.X509ExtensionUtils getExtensionUtils()
Gets actual org.bouncycastle object being wrapped.- Returns:
- wrapped
X509ExtensionUtils
.
-
createAuthorityKeyIdentifier
public IAuthorityKeyIdentifier createAuthorityKeyIdentifier(ISubjectPublicKeyInfo publicKeyInfo)
Calls actualcreateAuthorityKeyIdentifier
method for the wrapped X509ExtensionUtils object.- Specified by:
createAuthorityKeyIdentifier
in interfaceIX509ExtensionUtils
- Parameters:
publicKeyInfo
- SubjectPublicKeyInfo wrapper- Returns:
IAuthorityKeyIdentifier
wrapper for the created AuthorityKeyIdentifier.
-
createSubjectKeyIdentifier
public ISubjectKeyIdentifier createSubjectKeyIdentifier(ISubjectPublicKeyInfo publicKeyInfo)
Calls actualcreateSubjectKeyIdentifier
method for the wrapped X509ExtensionUtils object.- Specified by:
createSubjectKeyIdentifier
in interfaceIX509ExtensionUtils
- Parameters:
publicKeyInfo
- SubjectPublicKeyInfo wrapper- Returns:
ISubjectKeyIdentifier
wrapper for the created SubjectKeyIdentifier.
-
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
-
-