|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.util.EventObject
ice.ssl.CertificateEvent
An event which indicates that a certificate has been
recieved during a SSL transaction.
The event is passed to the unique CertificateListener object
that registered to receive such events using SSLSocket's
setBlockingCertificateListener() static method.
CertificateListener,
CertificateErrorInfo,
Serialized Form| Field Summary |
| Fields inherited from class java.util.EventObject |
source |
| Constructor Summary | |
CertificateEvent(SSLSocket socket,
X509Certificate cert,
CertificateErrorInfo[] errors)
Constructs a CertificateEvent object. |
|
| Method Summary | |
X509Certificate |
getCertificate()
Returns the server certificate that has been received. |
CertificateErrorInfo[] |
getErrors()
Returns an array of Exception objects that indicates
all errors found while parsing and verifying the certificate. |
boolean |
isVerified()
Indicates wether errors have been found while parsing and verifying the certificate received. |
| Methods inherited from class java.util.EventObject |
getSource, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public CertificateEvent(SSLSocket socket,
X509Certificate cert,
CertificateErrorInfo[] errors)
CertificateEvent object.
cert - the certificate that has been receivederrors - the array of exceptions indicating all errors found
while parsing and verifying the certificate| Method Detail |
public X509Certificate getCertificate()
public CertificateErrorInfo[] getErrors()
Exception objects that indicates
all errors found while parsing and verifying the certificate.
If the SSLSocket's static method setCertEvents() is set to
ALL_CERTIFICATE then the method may return an array of length 0.
If the certificate is corrupted or not understood, a array
containing a single
CertificateParsingException will be returned.
SSLSocket.setCertEvents(int),
isVerified()public boolean isVerified()
getErrors() will return an array of length 0.
getErrors()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||