org.apache.commons.net.ftp
Class FTPSTrustManager

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

public class FTPSTrustManager
extends java.lang.Object
implements javax.net.ssl.X509TrustManager

Custom TrustManager implementation.

Since:
2.0
Version:
$Id: FTPSTrustManager.java 962837 2010-07-10 12:52:24Z sebb $

Constructor Summary
FTPSTrustManager()
           
 
Method Summary
 void checkClientTrusted(java.security.cert.X509Certificate[] certificates, java.lang.String authType)
          No-op
 void checkServerTrusted(java.security.cert.X509Certificate[] certificates, java.lang.String authType)
           
 java.security.cert.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(java.security.cert.X509Certificate[] certificates,
                               java.lang.String authType)
No-op

Specified by:
checkClientTrusted in interface javax.net.ssl.X509TrustManager

checkServerTrusted

public void checkServerTrusted(java.security.cert.X509Certificate[] certificates,
                               java.lang.String authType)
                        throws java.security.cert.CertificateException
Specified by:
checkServerTrusted in interface javax.net.ssl.X509TrustManager
Throws:
java.security.cert.CertificateException

getAcceptedIssuers

public java.security.cert.X509Certificate[] getAcceptedIssuers()
Specified by:
getAcceptedIssuers in interface javax.net.ssl.X509TrustManager


Copyright © 2001-2011 Apache Software Foundation. All Rights Reserved.