com.rsa.certj.provider.revocation.ocsp

Class OCSPRevocationInfo

java.lang.Object
  |
  +--com.rsa.certj.provider.revocation.ocsp.OCSPRevocationInfo
All Implemented Interfaces:
Cloneable

public final class OCSPRevocationInfo
extends Object
implements Cloneable

This class holds revocation information about certificates known to have been revoked by an OCSP responder. This class is used with OCSPEvidence when the type of evidence is CertRevocationInfo.CRE_OCSP and CertRevocationInfo.getStatus() returns CERT_REVOKED.

This structure is derived from the following ASN.1 spec in RFC 2560:

 RevokedInfo ::= SEQUENCE {
     revocationTime              GeneralizedTime,
     revocationReason    [0]     EXPLICIT CRLReason OPTIONAL }

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

See Also

OCSPEvidence

Constructor Summary

OCSPRevocationInfo(int reasonCode, Date revocationTime)

Creates a new OCSPRevocationInfo object and initializes it with the given reason code and revocation time.

OCSPRevocationInfo(int reasonCode, long revocationTime)

Creates a new OCSPRevocationInfo object and initializes it with the given reason code and revocation time, where revocation is expressed as a long value.

OCSPRevocationInfo(long revocationTime)

Creates a new OCSPRevocationInfo object and initializes it with the given revocation time.

 

Method Summary

 Object

clone(OCSPRevocationInfo in)

 

 int

getReasonCode()

Returns the reason code indicating the reason why the certificate is revoked.

 Date

getRevocationTime()

Returns the revocation time if the status is revoked.

 void

setReasonCode(int reasonCode)

Set the reason code with the reason why the certificate was revoked.

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

Constructor Detail

OCSPRevocationInfo

public OCSPRevocationInfo(long revocationTime)
Creates a new OCSPRevocationInfo object and initializes it with the given revocation time.

Parameters

         revocationTime  

A Date object containing the revocation time.


OCSPRevocationInfo

public OCSPRevocationInfo(int reasonCode,
                          Date revocationTime)
Creates a new OCSPRevocationInfo object and initializes it with the given reason code and revocation time.

Parameters

         reasonCode  

An int containing the code that describes the revocation reason.

         revocationTime  

A Date object containing the revocation time.


OCSPRevocationInfo

public OCSPRevocationInfo(int reasonCode,
                          long revocationTime)
Creates a new OCSPRevocationInfo object and initializes it with the given reason code and revocation time, where revocation is expressed as a long value.

Parameters

         reasonCode  

An int containing the code that describes the revocation reason.

         revocationTime  

A long integer containing the revocation time.

Method Detail

clone

public Object clone(OCSPRevocationInfo in)

getReasonCode

public int getReasonCode()
Returns the reason code indicating the reason why the certificate is revoked.

Returns

A ReasonCode object indicating the reason why the certificate is revoked. This method returns null if the certificate has not been revoked.

getRevocationTime

public Date getRevocationTime()
Returns the revocation time if the status is revoked.

Returns

A Date object indicating the time when the certificate is revoked. This method returns null if the certificate has not been revoked.

setReasonCode

public void setReasonCode(int reasonCode)
Set the reason code with the reason why the certificate was revoked.

Parameters

         reasonCode  

A ReasonCode object indicating the reason why the certificate was revoked.



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