es.caib.signatura.api
Interface ParsedCertificate

All Known Implementing Classes:
ParsedCertificateProxy

public interface ParsedCertificate

Interface to access to the certificate information. It abstracts subject's information encoding.


Method Summary
 java.lang.String getCommonName()
           
 java.lang.String getName()
          Gets the subject's common name of the certificate.
 java.lang.String getNif()
          Gets the NIF/CIF of the certificate holder.
 java.lang.String getNifResponsable()
          Gets the NIF of the responsible person for the certificate.
 java.util.Date getValidSince()
          Gets the date when the certificate starts being valid.
 java.util.Date getValidUntil()
          Gets the date when the certificate stops being valid.
 boolean isPersonaFisica()
          Determines if it is a natural person's certificate.
 boolean isPersonaJuridica()
          Determines if it is a legal person's certificate (not natural person's certificate).
 

Method Detail

getNif

java.lang.String getNif()
Gets the NIF/CIF of the certificate holder. In case of legal persons, it gets the CIF of the legal person.

Returns:
the subject NIF.

getName

java.lang.String getName()
Gets the subject's common name of the certificate.

Returns:
the subject's common name.

getNifResponsable

java.lang.String getNifResponsable()
Gets the NIF of the responsible person for the certificate. Only applies if it's a legal person's certificate.

Returns:
the responsible person's NIF

getValidSince

java.util.Date getValidSince()
Gets the date when the certificate starts being valid.

Returns:
the date when the certificate starts being valid.

getValidUntil

java.util.Date getValidUntil()
Gets the date when the certificate stops being valid.

Returns:
the date when the certificate stops being valid.

isPersonaFisica

boolean isPersonaFisica()
Determines if it is a natural person's certificate.

Returns:
true if it is a natural person's certificate; false otherwise.

isPersonaJuridica

boolean isPersonaJuridica()
Determines if it is a legal person's certificate (not natural person's certificate).

Returns:
true if it is a legal person's certificate; false otherwise.

getCommonName

java.lang.String getCommonName()
Returns:
Certificate Common Name (TEST: Certificate Common Name if we are in dev/test mode and the certificate is a not recognized one.


Copyright © 2011 Direcció General de Tecnologia i Comunicacions. Govern de les Illes Balears. All Rights Reserved.