|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.rsa.certj.provider.revocation.ocsp.OCSPRevocationInfo
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 } |
See Also
OCSPEvidence
Constructor Summary |
|
OCSPRevocationInfo(int reasonCode,
Date revocationTime)
Creates a new |
|
OCSPRevocationInfo(int reasonCode,
long revocationTime)
Creates a new |
|
OCSPRevocationInfo(long revocationTime)
Creates a new |
Method Summary |
|
clone(OCSPRevocationInfo in)
|
|
int |
getReasonCode()
Returns the reason code indicating the reason why the certificate is revoked. |
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 |
public OCSPRevocationInfo(long revocationTime)
OCSPRevocationInfo
object and
initializes it with the given revocation time.Parameters
revocationTime | A |
public OCSPRevocationInfo(int reasonCode, Date revocationTime)
OCSPRevocationInfo
object and
initializes it with the given reason code and revocation time.Parameters
reasonCode | An | ||
revocationTime | A |
public OCSPRevocationInfo(int reasonCode, long revocationTime)
OCSPRevocationInfo
object and
initializes it with the given reason code and revocation time,
where revocation is expressed as a long
value.Parameters
reasonCode | An | ||
revocationTime | A |
Method Detail |
public Object clone(OCSPRevocationInfo in)
public int getReasonCode()
Returns
ReasonCode
object indicating the
reason why the certificate is revoked. This method returns
null
if the certificate has not been revoked.public Date getRevocationTime()
Returns
Date
object indicating
the time when the certificate is revoked. This method returns
null
if the certificate has not been revoked.public void setReasonCode(int reasonCode)
Parameters
reasonCode | A |
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |