| 
 | Oracle Security Developer Tools Security Engine Java API Reference 10g Release 2 (10.1.2.0.2) B15569-01 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
   oracle.security.crypto.cert.CertificateStatus
oracle.security.crypto.cert.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 Form| Field Summary | |
| static int | EXPIREDStatus code for certificates which have expired (or are not yet valid). | 
| static int | INVALIDStatus code for invalid certificates. | 
| static int | ON_HOLDStatus code for certificates which have been put on hold. | 
| protected java.lang.String | reasonThe reason for this status.\ | 
| protected java.util.Date | revocationDateThe revocation date. | 
| static int | REVOKEDStatus code for certificates which have been revoked. | 
| protected int | statusCodeThe status code. | 
| protected static java.lang.String[] | statusCodeStrsUsed by toString()to find the description of a status code. | 
| static int | UNKNOWNStatus code for certificates of unknown status. | 
| static int | VALIDStatus 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()
| 
 | Oracle Security Developer Tools Security Engine Java API Reference 10g Release 2 (10.1.2.0.2) B15569-01 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||