Class DynamicCertificateExtension

java.lang.Object
com.itextpdf.signatures.validation.extensions.CertificateExtension
com.itextpdf.signatures.validation.extensions.DynamicCertificateExtension
Direct Known Subclasses:
DynamicBasicConstraintsExtension

public class DynamicCertificateExtension extends CertificateExtension
Certificate extension which is populated with additional dynamically changing validation related information.
  • Constructor Details

    • DynamicCertificateExtension

      public DynamicCertificateExtension (String extensionOid, IASN1Primitive extensionValue)
      Create new instance of CertificateExtension using provided extension OID and value.
      Parameters:
      extensionOid - String, which represents extension OID
      extensionValue - IASN1Primitive, which represents extension value
  • Method Details

    • withCertificateChainSize

      public DynamicCertificateExtension withCertificateChainSize (int certificateChainSize)
      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