org.hardtokenmgmt.core.logon
Class TolimaTrustManager

java.lang.Object
  extended by org.hardtokenmgmt.core.logon.TolimaTrustManager
All Implemented Interfaces:
javax.net.ssl.TrustManager, javax.net.ssl.X509TrustManager

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

ToLiMa Trust Manager is used during login in using a stand-alone application. It works in the following way, It checks the trusted issuer against the issuer of the server certificate used the first time. It it is the first time the Root certificate of the server certificate is stored in administrator setting using the property : TRUSTEDCACERT If the issuer is changed a dialog will be displayed using the ILogonGUICallback interface asking the user if the new issuer should be trusted.

Version:
$Id$
Author:
Philip Vendil 2 feb 2008

Constructor Summary
TolimaTrustManager(ILogonGUICallback gUICallBack)
           
 
Method Summary
 void checkClientTrusted(java.security.cert.X509Certificate[] certs, java.lang.String authType)
           
 void checkServerTrusted(java.security.cert.X509Certificate[] certs, 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

TolimaTrustManager

public TolimaTrustManager(ILogonGUICallback gUICallBack)
Method Detail

getAcceptedIssuers

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

checkClientTrusted

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

checkServerTrusted

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