Class DynamicCertificateExtension

    • Field Detail

      • certificateChainSize

        private int certificateChainSize
    • Constructor Detail

      • DynamicCertificateExtension

        public DynamicCertificateExtension​(java.lang.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 Detail

      • 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