org.iids.aos.kernel
Class CALessX509TrustManager

java.lang.Object
  extended by org.iids.aos.kernel.CALessX509TrustManager
All Implemented Interfaces:
javax.net.ssl.TrustManager, javax.net.ssl.X509TrustManager

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

We currently do not use any certification authorities (CAs) to certify AOS kernels. The Java SSL library does not accommodate for this so we define our own TrustManager to rule that CA-less i.e. self-signed certificates are OK.

Author:
arno

Constructor Summary
CALessX509TrustManager()
          Creates a new instance of CALessX509TrustManager
 
Method Summary
 void checkClientTrusted(java.security.cert.X509Certificate[] chain, java.lang.String authType)
           
 void checkServerTrusted(java.security.cert.X509Certificate[] chain, 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

CALessX509TrustManager

public CALessX509TrustManager()
Creates a new instance of CALessX509TrustManager

Method Detail

checkClientTrusted

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

checkServerTrusted

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

getAcceptedIssuers

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


Copyright © 2003, 2004 IIDS Group. All Rights Reserved.