org.apache.commons.net.ftp
Class FTPSTrustManager

java.lang.Object
  extended by org.apache.commons.net.ftp.FTPSTrustManager
All Implemented Interfaces:
TrustManager, X509TrustManager

public class FTPSTrustManager
extends Object
implements X509TrustManager

Custom TrustManager implementation.

Since:
2.0
Version:
$Id: FTPSTrustManager.java 658520 2008-05-21 01:14:11Z sebb $

Constructor Summary
FTPSTrustManager()
           
 
Method Summary
 void checkClientTrusted(X509Certificate[] certificates, String authType)
          No-op
 void checkServerTrusted(X509Certificate[] certificates, String authType)
           
 X509Certificate[] getAcceptedIssuers()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FTPSTrustManager

public FTPSTrustManager()
Method Detail

checkClientTrusted

public void checkClientTrusted(X509Certificate[] certificates,
                               String authType)
No-op

Specified by:
checkClientTrusted in interface X509TrustManager

checkServerTrusted

public void checkServerTrusted(X509Certificate[] certificates,
                               String authType)
                        throws CertificateException
Specified by:
checkServerTrusted in interface X509TrustManager
Throws:
CertificateException

getAcceptedIssuers

public X509Certificate[] getAcceptedIssuers()
Specified by:
getAcceptedIssuers in interface X509TrustManager


Copyright © 1997-2008 The Apache Software Foundation. All Rights Reserved.