eu.id3.bioseal

## Class CertificateExtension

- java.lang.Object
- - eu.id3.bioseal.CertificateExtension

- All Implemented Interfaces:
    java.io.Serializable, java.lang.AutoCloseable

      public class CertificateExtension
      extends java.lang.Object
      implements java.lang.AutoCloseable, java.io.Serializable

  Information about a certificate extension.
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `CertificateExtension()` Creates a new instance of the CertificateExtension class.
    `CertificateExtension(long handle)` Creates a new instance of the CertificateExtension class.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `close()` Releases all resources used by this CertificateExtension.
    `protected void` | `finalize()` Finalizer for this class.
    `boolean` | `getCritical()` Gets the A value indicating whether the certificate extension is critical.
    `long` | `getHandle()` Gets the native handle.
    `java.lang.String` | `getOid()` Gets the the OID of the certificate extension.
    `byte[]` | `getValue()` Gets the A byte array that contains the value of the certificate extension.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### CertificateExtension

          public CertificateExtension()
                               throws BiosealException

      Creates a new instance of the CertificateExtension class.
      Throws:
        `BiosealException` - An error has occurred during Bioseal Library execution.

    - #### CertificateExtension

          public CertificateExtension(long handle)
                               throws BiosealException

      Creates a new instance of the CertificateExtension class.
      Parameters:
        `handle` - Handle to the CertificateExtension.
      Throws:
        `BiosealException` - An error has occurred during Bioseal Library execution.

  - ### Method Detail

    - #### close

          public void close()

      Releases all resources used by this CertificateExtension.
      Specified by:
        `close` in interface `java.lang.AutoCloseable`

    - #### finalize

          protected void finalize()

      Finalizer for this class. Finalizers are deprecated since Java 9+. This method is not guaranteed to be called. To release all memory held by this class please be sure to call the close() method.
      Overrides:
        `finalize` in class `java.lang.Object`

    - #### getHandle

          public long getHandle()

      Gets the native handle.
      Returns:
        The native handle.

    - #### getOid

          public java.lang.String getOid()
                                  throws BiosealException

      Gets the the OID of the certificate extension.
      Returns:
        The OID of the certificate extension.
      Throws:
        `BiosealException` - An error has occurred during Bioseal Library execution.

    - #### getValue

          public byte[] getValue()
                          throws BiosealException

      Gets the A byte array that contains the value of the certificate extension.
      Returns:
        A byte array that contains the value of the certificate extension.
      Throws:
        `BiosealException` - An error has occurred during Bioseal Library execution.

    - #### getCritical

          public boolean getCritical()
                              throws BiosealException

      Gets the A value indicating whether the certificate extension is critical.
      Returns:
        A value indicating whether the certificate extension is critical.
      Throws:
        `BiosealException` - An error has occurred during Bioseal Library execution.

Copyright © 2020-2030, id3 Technologies. All rights reserved. eu.id3.bioseal