jremote jbase5.2.1

com.jbase.jremote.io
Class NaiveTrustManager

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

public class NaiveTrustManager
extends Object
implements X509TrustManager

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


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

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

checkServerTrusted

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

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

getAcceptedIssuers

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

jremote jbase5.2.1

Copyright © 2016 TEMENOS. All Rights Reserved.