Class WrapperX509Cert
- java.lang.Object
-
- es.gob.afirma.tsl.certValidation.impl.common.WrapperX509Cert
-
public class WrapperX509Cert extends java.lang.ObjectWrapper 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetCommonNameIssuer()Gets the common name of the issuer certificatejava.lang.StringgetIssuerAlternativeName()Get the issuer alternative name.java.lang.StringgetOrganizationNameCertificate()Gets the organization name of the certificate.
-
-
-
Constructor Detail
-
WrapperX509Cert
public WrapperX509Cert(java.security.cert.X509Certificate cert) throws TSLCertificateValidationExceptionConstructor 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.
-
-