Class DynamicCertificateExtension
java.lang.Object
com.itextpdf.signatures.validation.v1.extensions.CertificateExtension
com.itextpdf.signatures.validation.v1.extensions.DynamicCertificateExtension
- Direct Known Subclasses:
-
DynamicBasicConstraintsExtension
Certificate extension which is populated with additional dynamically changing validation related information.
-
Constructor Summary
ConstructorDescriptionDynamicCertificateExtension
(String extensionOid, IASN1Primitive extensionValue) Create new instance ofCertificateExtension
using provided extension OID and value. -
Method Summary
Modifier and TypeMethodDescriptionint
Gets amount of certificates currently present in the chain.withCertificateChainSize
(int certificateChainSize) Sets amount of certificates currently present in the chain.Methods inherited from class com.itextpdf.signatures.validation.v1.extensions.CertificateExtension
equals, existsInCertificate, getExtensionOid, getExtensionValue, hashCode
-
Constructor Details
-
DynamicCertificateExtension
Create new instance ofCertificateExtension
using provided extension OID and value.- Parameters:
-
extensionOid
-String
, which represents extension OID -
extensionValue
-IASN1Primitive
, which represents extension value
-
-
Method Details
-
withCertificateChainSize
Sets amount of certificates currently present in the chain.- Parameters:
-
certificateChainSize
- amount of certificates currently present in the chain - Returns:
-
this
DynamicCertificateExtension
instance
-
getCertificateChainSize
public int getCertificateChainSize()Gets amount of certificates currently present in the chain.- Returns:
- amount of certificates currently present in the chain
-