|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
When a SSONETClientSocket connects to a SSONETServerSocket, Certificates
are exchanged. When a certificate arrives, the listeners method
checkCertificate
is called to determine, whether the certificate
is accepted or not. A CertificateListener implementation may return:
VALID
, if the certificate was tested and was found to be valid,
INVALID
, if the certificate was tested and was found to be invalid,
NOT_TESTED
, if the certificate was not tested.
VALID
and
none returned INVALID
, otherwise it is considered to be invalid, ad the
connection is rejected.
Field Summary | |
static int |
INVALID
Constant, which must be returned by a CertificateListener implementation, if the certificate was testet, and it was found to be invalid. |
static int |
NOT_TESTED
Constant, which must be returned by a CertificateListener implementation, if certificate was not testet, and so no decition about the validity of the certificate was possible. |
static int |
VALID
Constant, which must be returned by a CertificateListener implementation, if the certificate was testet, and it was found to be valid. |
Method Summary | |
int |
checkCertificate(org.ssonet.net.SSONETContext context,
java.security.cert.X509Certificate certificate)
|
Field Detail |
public static final int VALID
public static final int INVALID
public static final int NOT_TESTED
Method Detail |
public int checkCertificate(org.ssonet.net.SSONETContext context, java.security.cert.X509Certificate certificate)
context
- The Context in which the Certificate ha to be evaluated.certificate
- The Certificate to be evaluated.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |