Class X509ExtensionsGenerator

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      void reset() Reset the generator
      void addExtension(ASN1ObjectIdentifier oid, boolean critical, ASN1Encodable value) Add an extension with the given oid and the passed in value to be included in the OCTET STRING associated with the extension.
      void addExtension(ASN1ObjectIdentifier oid, boolean critical, Array<byte> value) Add an extension with the given oid and the passed in byte array to be wrapped in the OCTET STRING associated with the extension.
      boolean isEmpty() Return true if there are no extension present in this generator.
      X509Extensions generate() Generate an X509Extensions object based on the current state of the generator.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • X509ExtensionsGenerator

        X509ExtensionsGenerator()
    • Method Detail

      • reset

         void reset()

        Reset the generator

      • addExtension

         void addExtension(ASN1ObjectIdentifier oid, boolean critical, ASN1Encodable value)

        Add an extension with the given oid and the passed in value to be included in the OCTET STRING associated with the extension.

        Parameters:
        oid - OID for the extension.
        critical - true if critical, false otherwise.
        value - the ASN.1 object to be included in the extension.
      • addExtension

         void addExtension(ASN1ObjectIdentifier oid, boolean critical, Array<byte> value)

        Add an extension with the given oid and the passed in byte array to be wrapped in the OCTET STRING associated with the extension.

        Parameters:
        oid - OID for the extension.
        critical - true if critical, false otherwise.
        value - the byte array to be wrapped.
      • isEmpty

         boolean isEmpty()

        Return true if there are no extension present in this generator.

        Returns:

        true if empty, false otherwise

      • generate

         X509Extensions generate()

        Generate an X509Extensions object based on the current state of the generator.

        Returns:

        an X09Extensions object.