Secure iNet Factory

com.jscape.inet.ftps
Interface FtpsCertificateVerifier


public interface FtpsCertificateVerifier

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

authorized

boolean authorized()
Checks whether certificate is trusted.

Returns:
true if certificate is trusted

verify

void verify(javax.net.ssl.SSLSession session)
Invoked when handshake has completed.

Parameters:
session - contains the X509Certificate instance needed to verify if certificate is trusted

Secure iNet Factory

Copyright © JSCAPE LLC. 1999-2011. All Rights Reserved