es.caib.signatura.api
Interface ParsedCertificate


public interface ParsedCertificate

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


Method Summary
 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.
 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

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.


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