Class WrapperX509Cert


  • public class WrapperX509Cert
    extends java.lang.Object

    Wrapper class for a X.509v3 Certificate. This class provides methods to calculate/extract some information of the certificate.

    Project:

    Library for the integration with the services of @Firma, eVisor and TS@.

    Version:
    1.0, 29/09/2023.
    • Constructor Summary

      Constructors 
      Constructor Description
      WrapperX509Cert​(java.security.cert.X509Certificate cert)
      Constructor method for the class WrapperX509Cert.java.
    • Constructor Detail

      • WrapperX509Cert

        public WrapperX509Cert​(java.security.cert.X509Certificate cert)
                        throws TSLCertificateValidationException
        Constructor method for the class WrapperX509Cert.java.
        Parameters:
        cert - X.509 certificate to wrap.
        Throws:
        TSLCertificateValidationException - In case of some error parsing the input certificate with Bouncy Castle provider.
    • Method Detail

      • getOrganizationNameCertificate

        public java.lang.String getOrganizationNameCertificate()
        Gets the organization name of the certificate.
        Returns:
        Organization name.
      • getCommonNameIssuer

        public java.lang.String getCommonNameIssuer()
        Gets the common name of the issuer certificate
        Returns:
        Issuer name.
      • getIssuerAlternativeName

        public java.lang.String getIssuerAlternativeName()
        Get the issuer alternative name.
        Returns:
        Issuer alternative name.