com.rsa.certj.spi.revocation

Class CertRevocationInfo

java.lang.Object
  |
  +--com.rsa.certj.spi.revocation.CertRevocationInfo

public final class CertRevocationInfo
extends Object

This class holds revocation information of a certificate. The revocation status of a certificate can be revoked, not revoked, or unknown. Additionally, this class holds the evidence, or verifiable details, of the revocation status of the certificate.

Copyright © RSA Security Inc., 1999-2001. All rights reserved.


Field Summary

static int

CERT_NOT_REVOKED

Indicates the certificate is not revoked.

static int

CERT_REVOCATION_UNKNOWN

Indicates that the certificate revocation status is unknown.

static int

CERT_REVOKED

Indicates that the certificate is revoked.

static int

CRE_CRL

Indicates that the evidence of revocation status is a CRL.

static int

CRE_NONE

Indicates that the evidence of revocation status is not provided.

static int

CRE_OCSP

Indicates that the evidence of revocation status is an OCSPEvidence object.

 

Constructor Summary

CertRevocationInfo()

Constructs a CertRevocationInfo object with default state (status unknown and no evidence).

CertRevocationInfo(int status, int evidenceType, Object evidence)

Constructs a CertRevocationInfo object and initializes it with the given arguments.

 

Method Summary

 Object

getEvidence()

Gets the evidence object.

 int

getStatus()

Gets the certificate status.

 int

getType()

Gets the evidence type.

 void

setEvidence(Object evidence)

Sets the evidence object.

 void

setStatus(int status)

Sets the certificate status.

 void

setType(int type)

Sets the evidence type.

 String

toString()

 

 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CERT_NOT_REVOKED

public static final int CERT_NOT_REVOKED
Indicates the certificate is not revoked.

CERT_REVOKED

public static final int CERT_REVOKED
Indicates that the certificate is revoked.

CERT_REVOCATION_UNKNOWN

public static final int CERT_REVOCATION_UNKNOWN
Indicates that the certificate revocation status is unknown.

CRE_NONE

public static final int CRE_NONE
Indicates that the evidence of revocation status is not provided.

CRE_CRL

public static final int CRE_CRL
Indicates that the evidence of revocation status is a CRL.

CRE_OCSP

public static final int CRE_OCSP
Indicates that the evidence of revocation status is an OCSPEvidence object.
Constructor Detail

CertRevocationInfo

public CertRevocationInfo()
Constructs a CertRevocationInfo object with default state (status unknown and no evidence).

CertRevocationInfo

public CertRevocationInfo(int status,
                          int evidenceType,
                          Object evidence)
Constructs a CertRevocationInfo object and initializes it with the given arguments.

Parameters

         status  

An int that holds the value of the revocation status of a given certificate. Possible values are CERT_NOT_REVOKED, CERT_REVOKED, and CERT_REVOCATION_UNKNOWN.

         evidenceType  

An int that indicates the type of the evidence of the revocation status of a given certificate, for example, CRE_CRL.

         evidence  

An Object that holds verifiable details that provide evidence of the revocation status of a given certificate.

Method Detail

toString

public String toString()

Overrides

toString in class Object

setStatus

public void setStatus(int status)
Sets the certificate status.

Parameters

         status  

An int that holding the value of the revocation status of a given certificate. Possible values are CERT_NOT_REVOKED, CERT_REVOKED, and CERT_REVOCATION_UNKNOWN.


setType

public void setType(int type)
Sets the evidence type.

Parameters

         evidenceType  

An int that indicating the type of the evidence of the revocation status of a given certificate; for example, CRE_CRL.


setEvidence

public void setEvidence(Object evidence)
Sets the evidence object.

Parameters

         evidence  

An Object that holds verifiable details that provide evidence of of the revocation status of a given certificate.


getStatus

public int getStatus()
Gets the certificate status.

Returns

An int indicating the revocation status: whether the certificate is good, revoked, or has unknown status. Possible values are CERT_NOT_REVOKED, CERT_REVOKED, and CERT_REVOCATION_UNKNOWN.

getType

public int getType()
Gets the evidence type.

Returns

An int indicating the type of evidence of the revocation status of a given certificate; for example, CRE_CRL.

getEvidence

public Object getEvidence()
Gets the evidence object.

Returns

An Object that contains verifiable evidence of the revocation status of a certificate.


RSA BSAFE ® Cert-J 2.1.1 001-047007-211-001-000