CodeBeamer 5.4.0.1-RC API

com.intland.codebeamer.remoting.util
Class DummyTrustManager

java.lang.Object
  extended by com.intland.codebeamer.remoting.util.DummyTrustManager
All Implemented Interfaces:
javax.net.ssl.TrustManager, javax.net.ssl.X509TrustManager

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

This "dummy" implementation does NOT validate certificate chains at all and will trust any server. This could be a security issue, but as a workaround it gives a secure connection to any server.

See Also:
DummyHostNameVerifier

Constructor Summary
DummyTrustManager()
           
 
Method Summary
 void checkClientTrusted(java.security.cert.X509Certificate[] arg0, java.lang.String arg1)
           
 void checkServerTrusted(java.security.cert.X509Certificate[] arg0, java.lang.String arg1)
           
 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

DummyTrustManager

public DummyTrustManager()
Method Detail

checkClientTrusted

public void checkClientTrusted(java.security.cert.X509Certificate[] arg0,
                               java.lang.String arg1)
Specified by:
checkClientTrusted in interface javax.net.ssl.X509TrustManager

checkServerTrusted

public void checkServerTrusted(java.security.cert.X509Certificate[] arg0,
                               java.lang.String arg1)
Specified by:
checkServerTrusted in interface javax.net.ssl.X509TrustManager

getAcceptedIssuers

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

CodeBeamer 5.4.0.1-RC API

Copyright © 2006-2009 Intland Software. All rights reserved.