|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--net.rim.device.api.crypto.certificate.status.CertificateStatusRequest
Encapsulates the information necessary for an over-the-air certificate status request. Once a request is generated, it can be passed on to a provider for processing. When the process is complete, this object is updated with either the returned status or the error condition.
| Constructor Summary | ||
|
CertificateStatusRequest(Certificate[] certChain,
boolean checkEntireChain,
KeyStore keyStore,
CertificateStatusManagerTicket ticket,
Object cookie)
Creates a new CertificateStatusRequest for the given certificate or certificate chain.
|
|
| Method Summary | ||
|
boolean |
checkEntireChain()
Returns true if the status of the entire chain is to be checked. |
|
Certificate[] |
getCertChain()
Returns the certificate chain associated with this request. |
|
Object |
getCookie()
Returns the cookie object initially passed into the constructor. |
|
String |
getErrorMessage()
Returns a textual error message describing the current error condition, if any. |
|
CertificateStatus |
getOverallStatus()
Returns the overall certificate status for this request. |
|
Enumeration |
getProviderErrorMessages()
Returns an enumeration of strings containing error messages logged by the certificate status providers. |
|
Certificate[] |
getResponseCerts()
Returns the array of certificates for which status was received (in no particular order). |
|
CertificateStatus[] |
getResponseStatus()
Returns an array containing CertificateStatus objects for each
certificate in the response certificate array (returned by getResponseCerts).
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CertificateStatusRequest(Certificate[] certChain, boolean checkEntireChain, KeyStore keyStore, CertificateStatusManagerTicket ticket, Object cookie)
CertificateStatusRequest for the given certificate or certificate chain.
certChain - The certificate chain containing the certificate(s) in question. Usually, it will
be necessary to include at least the certificate in question's issuer in the chain. Note that the
end-entity certificate must appear at array index [0]checkEntireChain - If this is false, only the status for the first certificate in the chain
will be requested. If this is true, the status for the first certificate and as many certificates above
it as possible will be requested.keyStore - The KeyStore that should be used to build up incomplete certificate
chains. This parameter is simply passed on to the certificate status providers, so exact usage will
depend upon the specific provider.ticket - A CertificateStatusManagerTicket that can be used to update the Key Store with
the new status automatically. If this is null, the Key Store will not be updated.cookie - An object to associate with this status request. This object will be accessable
when the listener is called.| Method Detail |
public Certificate[] getCertChain()
public boolean checkEntireChain()
public Object getCookie()
public CertificateStatus getOverallStatus()
CertificateStatus object describing the status, or
null if the status is not available.public Certificate[] getResponseCerts()
public CertificateStatus[] getResponseStatus()
CertificateStatus objects for each
certificate in the response certificate array (returned by getResponseCerts).
The status of a given certificate may be found in the element with the same index as
the certificate in the response array.
CertificateStatus objects describing the status of
each certificate in the response, or null in the case of an error.public String getErrorMessage()
getOverallStatus
and getCertificateStatus return null), an error has
occurred.
public Enumeration getProviderErrorMessages()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright 1999-2002 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved.
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.