1 package es.caib.signatura.api;
2
3 /**
4 * Interface to access to the certificate information. It abstracts subject's information encoding.
5 */
6 public interface ParsedCertificate {
7
8 /**
9 * Gets the NIF/CIF of the certificate holder.
10 * In case of legal persons, it gets the CIF of the legal person.
11 *
12 * @return the subject NIF.
13 */
14 public abstract String getNif();
15
16 /**
17 * Gets the subject's common name of the certificate.
18 *
19 * @return the subject's common name.
20 */
21 public abstract String getName();
22
23 /**
24 * Gets the NIF of the responsible person for the certificate. Only applies if it's a legal person's certificate.
25 *
26 * @return the responsible person's NIF
27 */
28 public abstract String getNifResponsable();
29
30 /**
31 * Determines if it is a natural person's certificate.
32 *
33 * @return true if it is a natural person's certificate; false otherwise.
34 */
35 public abstract boolean isPersonaFisica();
36
37 /**
38 * Determines if it is a legal person's certificate (not natural person's certificate).
39 *
40 * @return true if it is a legal person's certificate; false otherwise.
41 */
42 public abstract boolean isPersonaJuridica();
43
44 }