org.apache.manifoldcf.agents.output.gts
Class HttpPoster.LaxTrustManager

java.lang.Object
  extended by org.apache.manifoldcf.agents.output.gts.HttpPoster.LaxTrustManager
All Implemented Interfaces:
javax.net.ssl.TrustManager, javax.net.ssl.X509TrustManager
Enclosing class:
HttpPoster

protected static class HttpPoster.LaxTrustManager
extends java.lang.Object
implements javax.net.ssl.X509TrustManager

Our own trust manager, which ignores certificate issues


Constructor Summary
HttpPoster.LaxTrustManager()
          Does nothing
 
Method Summary
 void checkClientTrusted(java.security.cert.X509Certificate[] certs, java.lang.String authType)
          We have no problem with any clients
 void checkServerTrusted(java.security.cert.X509Certificate[] certs, java.lang.String authType)
          We have no problem with any servers
 java.security.cert.X509Certificate[] getAcceptedIssuers()
          Return a list of accepted issuers.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpPoster.LaxTrustManager

public HttpPoster.LaxTrustManager()
Does nothing

Method Detail

getAcceptedIssuers

public java.security.cert.X509Certificate[] getAcceptedIssuers()
Return a list of accepted issuers. There are none.

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

checkClientTrusted

public void checkClientTrusted(java.security.cert.X509Certificate[] certs,
                               java.lang.String authType)
                        throws java.security.cert.CertificateException
We have no problem with any clients

Specified by:
checkClientTrusted in interface javax.net.ssl.X509TrustManager
Throws:
java.security.cert.CertificateException

checkServerTrusted

public void checkServerTrusted(java.security.cert.X509Certificate[] certs,
                               java.lang.String authType)
                        throws java.security.cert.CertificateException
We have no problem with any servers

Specified by:
checkServerTrusted in interface javax.net.ssl.X509TrustManager
Throws:
java.security.cert.CertificateException