|
Oracle Fusion Middleware Security Engine Java API Reference for Oracle Security Developer Tools 11g Release 1 (11.1.1) E10674-04 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.security.crypto.cert.CertificateStatus
public class CertificateStatus
Objects of this class represent the status of a certificate. They are returned by the methods of CertificateValidator
and its subclasses.
A certificate status consists of the following components:
UNKNOWN | The status of the certificate is unknown. |
VALID | The certificate is valid. |
INVALID | The certificate is invalid. |
REVOKED | The certificate has been revoked. |
EXPIRED | The certificate has expired (or is not yet valid). |
ON_HOLD | The certificate has been put on hold. |
CertificateValidator
, Serialized FormField Summary | |
---|---|
static int |
EXPIRED Status code for certificates which have expired (or are not yet valid). |
static int |
INVALID Status code for invalid certificates. |
static int |
ON_HOLD Status code for certificates which have been put on hold. |
protected java.lang.String |
reason The reason for this status.\ |
protected java.util.Date |
revocationDate The revocation date. |
static int |
REVOKED Status code for certificates which have been revoked. |
protected int |
statusCode The status code. |
protected static java.lang.String[] |
statusCodeStrs Used by toString() to find the description of a status code. |
static int |
UNKNOWN Status code for certificates of unknown status. |
static int |
VALID Status code for valid certificates. |
Constructor Summary | |
---|---|
CertificateStatus() Creates a new certificate status object with UNKNOWN status code. |
|
CertificateStatus(int statusCode) Creates a new certificate status object with the specified status code. |
|
CertificateStatus(int statusCode, java.lang.String reason) Creates a new certificate status object with the specified status code and reason. |
Method Summary | |
---|---|
java.lang.String |
getReason() Get the reason for this status. |
java.util.Date |
getRevocationDate() If the status code is REVOKED, use this method to get the revocation date, if set. |
int |
getStatusCode() Get the status code. |
java.lang.String |
getStatusCodeString() Get the string representation for the status code. |
void |
setReason(java.lang.String reason) Set the reason for this status, as an arbitrary string. |
void |
setRevocationDate(java.util.Date revocationDate) If the status code is REVOKED, use this method to set the revocation date. |
void |
setStatusCode(int statusCode) Set the status code. |
void |
setStatusCode(java.lang.String s) Set the status code from a string. |
java.lang.String |
toString() Returns a string which describes this certificate status object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int UNKNOWN
public static final int VALID
public static final int INVALID
public static final int REVOKED
public static final int EXPIRED
public static final int ON_HOLD
protected static final java.lang.String[] statusCodeStrs
toString()
to find the description of a status code.protected int statusCode
protected java.lang.String reason
protected java.util.Date revocationDate
Constructor Detail |
---|
public CertificateStatus()
public CertificateStatus(int statusCode)
public CertificateStatus(int statusCode, java.lang.String reason)
Method Detail |
---|
public int getStatusCode()
public java.lang.String getStatusCodeString()
"UNKNOWN", "VALID", "INVALID", "REVOKED", "EXPIRED", "ON_HOLD"
.public void setStatusCode(int statusCode)
public void setStatusCode(java.lang.String s)
"UNKNOWN", "VALID", "INVALID", "REVOKED", "EXPIRED", "ON_HOLD"
. Any other string will be treated as "UNKNOWN"
.public java.lang.String getReason()
public void setReason(java.lang.String reason)
public java.util.Date getRevocationDate()
public void setRevocationDate(java.util.Date revocationDate)
public java.lang.String toString()
toString
in class java.lang.Object
|
Oracle Fusion Middleware Security Engine Java API Reference for Oracle Security Developer Tools 11g Release 1 (11.1.1) E10674-04 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |