public interface FtpsCertificateVerifier
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.Modifier and Type | Method and Description |
---|---|
boolean |
authorized()
Checks whether certificate is trusted.
|
void |
verify(javax.net.ssl.SSLSession session)
Invoked when handshake has completed.
|
boolean authorized()
true
if certificate is trustedvoid verify(javax.net.ssl.SSLSession session)
session
- contains the X509Certificate
instance needed to verify if certificate is trustedCopyright © JSCAPE LLC. 1999-2023. All Rights Reserved