Class X509CertificateExtension

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getExtensionName()
      Retrieves the name for this extension.
      OID getOID()
      Retrieves the OID for this extension.
      byte[] getValue()
      Retrieves the value for this extension.
      boolean isCritical()
      Indicates whether this extension is considered critical.
      java.lang.String toString()
      Retrieves a string representation of this extension.
      void toString​(java.lang.StringBuilder buffer)
      Appends a string representation of this certificate extension to the provided buffer.
      • Methods inherited from class java.lang.Object

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

      • X509CertificateExtension

        public X509CertificateExtension​(OID oid,
                                        boolean isCritical,
                                        byte[] value)
        Creates a new X.509 certificate extension with the provided information.
        Parameters:
        oid - The OID for this extension.
        isCritical - Indicates whether this extension is considered critical.
        value - The value for this extension.
    • Method Detail

      • getOID

        public final OID getOID()
        Retrieves the OID for this extension.
        Returns:
        The OID for this extension.
      • isCritical

        public final boolean isCritical()
        Indicates whether this extension is considered critical.
        Returns:
        true if this extension is considered critical, or false if not.
      • getValue

        public final byte[] getValue()
        Retrieves the value for this extension.
        Returns:
        The value for this extension.
      • getExtensionName

        public java.lang.String getExtensionName()
        Retrieves the name for this extension.
        Returns:
        The name for this extension.
      • toString

        public final java.lang.String toString()
        Retrieves a string representation of this extension.
        Overrides:
        toString in class java.lang.Object
        Returns:
        A string representation of this extension.
      • toString

        public void toString​(java.lang.StringBuilder buffer)
        Appends a string representation of this certificate extension to the provided buffer.
        Parameters:
        buffer - The buffer to which the information should be appended.