es.caib.signatura.impl
Class ParsedCertificateProxy

java.lang.Object
  extended by es.caib.signatura.impl.ParsedCertificateProxy
All Implemented Interfaces:
ParsedCertificate

public class ParsedCertificateProxy
extends java.lang.Object
implements ParsedCertificate


Constructor Summary
ParsedCertificateProxy(ParsedCertificate parsed)
           
 
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).
 void setCommonName(java.lang.String commonName)
           
 void setName(java.lang.String name)
           
 void setNif(java.lang.String nif)
           
 void setNifResponsable(java.lang.String nifResponsable)
           
 void setPersonaFisica(boolean personaFisica)
           
 void setPersonaJuridica(boolean personaJuridica)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParsedCertificateProxy

public ParsedCertificateProxy(ParsedCertificate parsed)
Method Detail

isPersonaFisica

public boolean isPersonaFisica()
Description copied from interface: ParsedCertificate
Determines if it is a natural person's certificate.

Specified by:
isPersonaFisica in interface ParsedCertificate
Returns:
the personaFisica

setPersonaFisica

public void setPersonaFisica(boolean personaFisica)
Parameters:
personaFisica - the personaFisica to set

isPersonaJuridica

public boolean isPersonaJuridica()
Description copied from interface: ParsedCertificate
Determines if it is a legal person's certificate (not natural person's certificate).

Specified by:
isPersonaJuridica in interface ParsedCertificate
Returns:
the personaJuridica

setPersonaJuridica

public void setPersonaJuridica(boolean personaJuridica)
Parameters:
personaJuridica - the personaJuridica to set

getName

public java.lang.String getName()
Description copied from interface: ParsedCertificate
Gets the subject's common name of the certificate.

Specified by:
getName in interface ParsedCertificate
Returns:
the name

setName

public void setName(java.lang.String name)
Parameters:
name - the name to set

getCommonName

public java.lang.String getCommonName()
Specified by:
getCommonName in interface ParsedCertificate
Returns:
the Common Name

setCommonName

public void setCommonName(java.lang.String commonName)
Parameters:
Common - Name the name to set

getNif

public java.lang.String getNif()
Description copied from interface: ParsedCertificate
Gets the NIF/CIF of the certificate holder. In case of legal persons, it gets the CIF of the legal person.

Specified by:
getNif in interface ParsedCertificate
Returns:
the nif

setNif

public void setNif(java.lang.String nif)
Parameters:
nif - the nif to set

getNifResponsable

public java.lang.String getNifResponsable()
Description copied from interface: ParsedCertificate
Gets the NIF of the responsible person for the certificate. Only applies if it's a legal person's certificate.

Specified by:
getNifResponsable in interface ParsedCertificate
Returns:
the nifResponsable

setNifResponsable

public void setNifResponsable(java.lang.String nifResponsable)
Parameters:
nifResponsable - the nifResponsable to set

getValidSince

public java.util.Date getValidSince()
Description copied from interface: ParsedCertificate
Gets the date when the certificate starts being valid.

Specified by:
getValidSince in interface ParsedCertificate
Returns:
the date when the certificate starts being valid.

getValidUntil

public java.util.Date getValidUntil()
Description copied from interface: ParsedCertificate
Gets the date when the certificate stops being valid.

Specified by:
getValidUntil in interface ParsedCertificate
Returns:
the date when the certificate stops being valid.


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