public class CertificateExtension extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
EXCEPTION_OCCURRED |
static String |
EXPECTED_EXTENSION_ID_AND_VALUE |
static String |
EXTENSION_NOT_FOUND |
static String |
FOUND_VALUE |
| Constructor and Description |
|---|
CertificateExtension(String extensionOid,
com.itextpdf.commons.bouncycastle.asn1.IASN1Primitive extensionValue)
Create new instance of
CertificateExtension using provided extension OID and value. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
boolean |
existsInCertificate(X509Certificate certificate)
Check if this extension is present in the provided certificate.
|
String |
getExtensionOid()
Get extension OID
|
com.itextpdf.commons.bouncycastle.asn1.IASN1Primitive |
getExtensionValue()
Get extension value
|
String |
getMessage()
Returns a message with extra information about the check.
|
int |
hashCode() |
public static final String EXCEPTION_OCCURRED
public static final String EXTENSION_NOT_FOUND
public static final String FOUND_VALUE
public static final String EXPECTED_EXTENSION_ID_AND_VALUE
public CertificateExtension(String extensionOid, com.itextpdf.commons.bouncycastle.asn1.IASN1Primitive extensionValue)
CertificateExtension using provided extension OID and value.extensionOid - String, which represents extension OIDextensionValue - IASN1Primitive, which represents extension valuepublic com.itextpdf.commons.bouncycastle.asn1.IASN1Primitive getExtensionValue()
IASN1Primitive, which represents extension valuepublic String getExtensionOid()
String, which represents extension OIDpublic String getMessage()
public boolean existsInCertificate(X509Certificate certificate)
This method doesn't always require complete extension value equality, instead whenever possible it checks that this extension is present in the certificate.
certificate - X509Certificate in which this extension shall be presenttrue if extension if present, false otherwiseCopyright © 1998–2025 Apryse Group NV. All rights reserved.