All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class iaik.x509.RevokedCertificate

java.lang.Object
   |
   +----iaik.x509.X509Extensions
           |
           +----iaik.x509.RevokedCertificate

public class RevokedCertificate
extends X509Extensions
This class represents a revoked certificate.


Constructor Index

 o RevokedCertificate(ASN1Object)
Crates a revoked certificate from an ASN1Object.
 o RevokedCertificate(BigInteger, Date)
Creates a revoked certificate from a serial number and a date.
 o RevokedCertificate(X509Certificate, Date)
Creates a revoked certificate from a certificate and a date.

Method Index

 o getRevocationDate()
Returns the revocation date of the revoked cert.
 o getSerialNumber()
Returns the serial number of the revoked cert.
 o setRevocationDate(Date)
Set the revocation date of the certificate.
 o setSerialNumber(BigInteger)
Set the serial number for the revoked cert.
 o toASN1Object()
Returns the revoked certificate as ASN1Object.
 o toString()
Returns a string that represents this revoked certificate.
 o toString(boolean)
Returns a string that represents this revoked certificate.

Constructors

 o RevokedCertificate
 public RevokedCertificate(ASN1Object obj) throws CertException
Crates a revoked certificate from an ASN1Object.

Parameters:
obj - the revoked certificate as ASN1Object
Throws: CertException
if the ASN1Object has the wrong format
 o RevokedCertificate
 public RevokedCertificate(X509Certificate cert,
                           Date revocationDate)
Creates a revoked certificate from a certificate and a date.

Parameters:
cert - the certificate, which should be revoked
revocationDate - the date when the becomes unvalid
 o RevokedCertificate
 public RevokedCertificate(BigInteger serialNumber,
                           Date revocationDate)
Creates a revoked certificate from a serial number and a date.

Parameters:
serialNumber - the serial number of the cert to revoke
revocationDate - the date when the certificate becomes unvalid

Methods

 o toASN1Object
 public ASN1Object toASN1Object() throws CertException
Returns the revoked certificate as ASN1Object.

Returns:
the revoked cert as ASN1Object
Throws: CertException
if the ASN1Object could not be created
 o setSerialNumber
 public void setSerialNumber(BigInteger serialNumber)
Set the serial number for the revoked cert.

Parameters:
serialNumber - the serial number of the revoked cert
 o setRevocationDate
 public void setRevocationDate(Date revocationDate)
Set the revocation date of the certificate.

Parameters:
revocationDate - the date when the certificate becomes unvalid
 o getSerialNumber
 public BigInteger getSerialNumber()
Returns the serial number of the revoked cert.

Returns:
the serial number of the revoked cert
 o getRevocationDate
 public Date getRevocationDate()
Returns the revocation date of the revoked cert.

Returns:
the date when the certificate becomes unvalid
 o toString
 public String toString()
Returns a string that represents this revoked certificate.

Returns:
the string representation
Overrides:
toString in class Object
 o toString
 public String toString(boolean detailed)
Returns a string that represents this revoked certificate.

Parameters:
detailed - - whether or not to give detailed information about the certificate.
Returns:
the string representation

All Packages  Class Hierarchy  This Package  Previous  Next  Index