jremote jbase5.2.1

com.jbase.jremote.io
Class NaiveTrustManager

java.lang.Object
  extended by com.jbase.jremote.io.NaiveTrustManager
All Implemented Interfaces:
javax.net.ssl.TrustManager, javax.net.ssl.X509TrustManager

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

This Trust Manager is "naive" because it trusts everyone.


Constructor Summary
NaiveTrustManager()
           
 
Method Summary
 void checkClientTrusted(java.security.cert.X509Certificate[] cert, java.lang.String authType)
          Doesn't throw an exception, so this is how it approves a certificate.
 void checkServerTrusted(java.security.cert.X509Certificate[] cert, java.lang.String authType)
          Doesn't throw an exception, so this is how it approves a certificate.
 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

NaiveTrustManager

public NaiveTrustManager()
Method Detail

checkClientTrusted

public void checkClientTrusted(java.security.cert.X509Certificate[] cert,
                               java.lang.String authType)
                        throws java.security.cert.CertificateException
Doesn't throw an exception, so this is how it approves a certificate.

Specified by:
checkClientTrusted in interface javax.net.ssl.X509TrustManager
Throws:
java.security.cert.CertificateException
See Also:
X509TrustManager.checkClientTrusted(java.security.cert.X509Certificate[], String)

checkServerTrusted

public void checkServerTrusted(java.security.cert.X509Certificate[] cert,
                               java.lang.String authType)
                        throws java.security.cert.CertificateException
Doesn't throw an exception, so this is how it approves a certificate.

Specified by:
checkServerTrusted in interface javax.net.ssl.X509TrustManager
Throws:
java.security.cert.CertificateException
See Also:
X509TrustManager.checkServerTrusted(java.security.cert.X509Certificate[], String)

getAcceptedIssuers

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

jremote jbase5.2.1

Copyright © 2010 TEMENOS. All Rights Reserved.