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.X509ExtensionUtilsextensionUtils
-
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 IAuthorityKeyIdentifiercreateAuthorityKeyIdentifier(ISubjectPublicKeyInfo publicKeyInfo)Calls actualcreateAuthorityKeyIdentifiermethod for the wrapped X509ExtensionUtils object.ISubjectKeyIdentifiercreateSubjectKeyIdentifier(ISubjectPublicKeyInfo publicKeyInfo)Calls actualcreateSubjectKeyIdentifiermethod for the wrapped X509ExtensionUtils object.booleanequals(java.lang.Object o)Indicates whether some other object is "equal to" this one.org.bouncycastle.cert.X509ExtensionUtilsgetExtensionUtils()Gets actual org.bouncycastle object being wrapped.inthashCode()Returns a hash code value based on the wrapped object.java.lang.StringtoString()DelegatestoStringmethod call to the wrapped object.
-
-
-
Constructor Detail
-
X509ExtensionUtilsBC
public X509ExtensionUtilsBC(org.bouncycastle.cert.X509ExtensionUtils extensionUtils)
Creates new wrapper instance forX509ExtensionUtils.- Parameters:
extensionUtils-X509ExtensionUtilsto 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 actualcreateAuthorityKeyIdentifiermethod for the wrapped X509ExtensionUtils object.- Specified by:
createAuthorityKeyIdentifierin interfaceIX509ExtensionUtils- Parameters:
publicKeyInfo- SubjectPublicKeyInfo wrapper- Returns:
IAuthorityKeyIdentifierwrapper for the created AuthorityKeyIdentifier.
-
createSubjectKeyIdentifier
public ISubjectKeyIdentifier createSubjectKeyIdentifier(ISubjectPublicKeyInfo publicKeyInfo)
Calls actualcreateSubjectKeyIdentifiermethod for the wrapped X509ExtensionUtils object.- Specified by:
createSubjectKeyIdentifierin interfaceIX509ExtensionUtils- Parameters:
publicKeyInfo- SubjectPublicKeyInfo wrapper- Returns:
ISubjectKeyIdentifierwrapper 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:
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
-
-