|
Secure iNet Factory | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Certificate verifier interface.
Client which implements this interface should implement the verify method to obtain the X509Certificate instance and verify it is a trusted certificate and implement
the authorized method to return whether or not certificate should be trusted.
When connecting the client will first invoke the authorized() method. If this method returns false, it will then invoke the verify method allowing you to check whether the certificate is valid. Once the
verify method has been invoked it will invoke the authorized method once again. In the verify method you should set a variable that can be read by the authorized() method to determine whether the certificate is valid.
| Method Summary | |
boolean |
authorized()
Checks whether certificate is trusted. |
void |
verify(javax.net.ssl.SSLSession session)
Invoked when handshake has completed. |
| Method Detail |
public boolean authorized()
true if certificate is trustedpublic void verify(javax.net.ssl.SSLSession session)
session - contains the X509Certificate instance needed to verify if certificate is trusted
|
Secure iNet Factory | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||