eu.id3.bioseal

## Class CertificateInformation

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

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

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

  Represents the information about a certificate.
  See Also:
    Serialized Form

- - ### Constructor Summary

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

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `close()` Releases all resources used by this CertificateInformation.
    `protected void` | `finalize()` Finalizer for this class.
    `CertificateExtensionList` | `getCertificateExtensionList()` Gets the the certificate extension list.
    `byte[]` | `getData()` Gets the the certificate data.
    `long` | `getHandle()` Gets the native handle.
    `java.lang.String` | `getIssuerCommonName()` Gets the the common name (CN) of the certificate issuer.
    `java.lang.String` | `getIssuerCountry()` Gets the the country (C) of the certificate issuer.
    `java.lang.String` | `getIssuerDistinguishedName()` Gets the the distinguished name (DN) of the certificate issuer.
    `java.lang.String` | `getIssuerOrganization()` Gets the the organization (O) of the certificate issuer.
    `java.lang.String` | `getIssuerOrganizationalUnit()` Gets the the organizational unit (OU) of the certificate issuer.
    `StringArray` | `getKeyUsage()` Gets the the certificate key usage list.
    `DateTime` | `getNotAfter()` Gets the the date in local time after which a certificate is no longer valid.
    `DateTime` | `getNotBefore()` Gets the the date in local time when a certificate becomes valid.
    `StringArray` | `getPolicies()` Gets the the certificate policies.
    `byte[]` | `getPublicKey()` Gets the the certificate public key.
    `byte[]` | `getSerialNumber()` Gets the the serial number of the certificate.
    `java.lang.String` | `getSerialNumberString()` Gets the the serial number from the certificate as a string.
    `java.lang.String` | `getSignatureAlgorithm()` Gets the the OID of the certificate's signing algorithm.
    `java.lang.String` | `getSubjectCommonName()` Gets the the subject common name (CN) from the certificate.
    `java.lang.String` | `getSubjectCountry()` Gets the the country (C) of the certificate subject.
    `java.lang.String` | `getSubjectDistinguishedName()` Gets the the subject distinguished (DN) name of the certificate.
    `java.lang.String` | `getSubjectOrganization()` Gets the the organization (O) of the certificate subject.
    `java.lang.String` | `getSubjectOrganizationalUnit()` Gets the the organizational unit (OU) of the certificate subject.
    `int` | `getVersion()` Gets the the certificate version.

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

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

- - ### Constructor Detail

    - #### CertificateInformation

          public CertificateInformation()
                                 throws BiosealException

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

    - #### CertificateInformation

          public CertificateInformation(long handle)
                                 throws BiosealException

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

  - ### Method Detail

    - #### close

          public void close()

      Releases all resources used by this CertificateInformation.
      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.

    - #### getIssuerCommonName

          public java.lang.String getIssuerCommonName()
                                               throws BiosealException

      Gets the the common name (CN) of the certificate issuer.
      Returns:
        The common name (CN) of the certificate issuer.
      Throws:
        `BiosealException` - An error has occurred during Bioseal Library execution.

    - #### getIssuerOrganization

          public java.lang.String getIssuerOrganization()
                                                 throws BiosealException

      Gets the the organization (O) of the certificate issuer.
      Returns:
        The organization (O) of the certificate issuer.
      Throws:
        `BiosealException` - An error has occurred during Bioseal Library execution.

    - #### getIssuerCountry

          public java.lang.String getIssuerCountry()
                                            throws BiosealException

      Gets the the country (C) of the certificate issuer.
      Returns:
        The country (C) of the certificate issuer.
      Throws:
        `BiosealException` - An error has occurred during Bioseal Library execution.

    - #### getIssuerOrganizationalUnit

          public java.lang.String getIssuerOrganizationalUnit()
                                                       throws BiosealException

      Gets the the organizational unit (OU) of the certificate issuer.
      Returns:
        The organizational unit (OU) of the certificate issuer.
      Throws:
        `BiosealException` - An error has occurred during Bioseal Library execution.

    - #### getIssuerDistinguishedName

          public java.lang.String getIssuerDistinguishedName()
                                                      throws BiosealException

      Gets the the distinguished name (DN) of the certificate issuer.
      Returns:
        The distinguished name (DN) of the certificate issuer.
      Throws:
        `BiosealException` - An error has occurred during Bioseal Library execution.

    - #### getSubjectCommonName

          public java.lang.String getSubjectCommonName()
                                                throws BiosealException

      Gets the the subject common name (CN) from the certificate.
      Returns:
        The subject common name (CN) from the certificate.
      Throws:
        `BiosealException` - An error has occurred during Bioseal Library execution.

    - #### getSubjectOrganization

          public java.lang.String getSubjectOrganization()
                                                  throws BiosealException

      Gets the the organization (O) of the certificate subject.
      Returns:
        The organization (O) of the certificate subject.
      Throws:
        `BiosealException` - An error has occurred during Bioseal Library execution.

    - #### getSubjectCountry

          public java.lang.String getSubjectCountry()
                                             throws BiosealException

      Gets the the country (C) of the certificate subject.
      Returns:
        The country (C) of the certificate subject.
      Throws:
        `BiosealException` - An error has occurred during Bioseal Library execution.

    - #### getSubjectOrganizationalUnit

          public java.lang.String getSubjectOrganizationalUnit()
                                                        throws BiosealException

      Gets the the organizational unit (OU) of the certificate subject.
      Returns:
        The organizational unit (OU) of the certificate subject.
      Throws:
        `BiosealException` - An error has occurred during Bioseal Library execution.

    - #### getSubjectDistinguishedName

          public java.lang.String getSubjectDistinguishedName()
                                                       throws BiosealException

      Gets the the subject distinguished (DN) name of the certificate.
      Returns:
        The subject distinguished (DN) name of the certificate.
      Throws:
        `BiosealException` - An error has occurred during Bioseal Library execution.

    - #### getNotBefore

          public DateTime getNotBefore()
                                throws BiosealException

      Gets the the date in local time when a certificate becomes valid.
      Returns:
        The date in local time when a certificate becomes valid.
      Throws:
        `BiosealException` - An error has occurred during Bioseal Library execution.

    - #### getNotAfter

          public DateTime getNotAfter()
                               throws BiosealException

      Gets the the date in local time after which a certificate is no longer valid.
      Returns:
        The date in local time after which a certificate is no longer valid.
      Throws:
        `BiosealException` - An error has occurred during Bioseal Library execution.

    - #### getSerialNumber

          public byte[] getSerialNumber()
                                 throws BiosealException

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

    - #### getSerialNumberString

          public java.lang.String getSerialNumberString()
                                                 throws BiosealException

      Gets the the serial number from the certificate as a string.
      Returns:
        The serial number from the certificate as a string.
      Throws:
        `BiosealException` - An error has occurred during Bioseal Library execution.

    - #### getData

          public byte[] getData()
                         throws BiosealException

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

    - #### getSignatureAlgorithm

          public java.lang.String getSignatureAlgorithm()
                                                 throws BiosealException

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

    - #### getVersion

          public int getVersion()
                         throws BiosealException

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

    - #### getPublicKey

          public byte[] getPublicKey()
                              throws BiosealException

      Gets the the certificate public key.
      Returns:
        The certificate public key.
      Throws:
        `BiosealException` - An error has occurred during Bioseal Library execution.

    - #### getKeyUsage

          public StringArray getKeyUsage()
                                  throws BiosealException

      Gets the the certificate key usage list.
      Returns:
        The certificate key usage list.
      Throws:
        `BiosealException` - An error has occurred during Bioseal Library execution.

    - #### getPolicies

          public StringArray getPolicies()
                                  throws BiosealException

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

    - #### getCertificateExtensionList

          public CertificateExtensionList getCertificateExtensionList()
                                                               throws BiosealException

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

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