com.gridsystems.innergrid.api
Class AcceptAllCertificates

java.lang.Object
  extended by com.gridsystems.innergrid.api.AcceptAllCertificates
All Implemented Interfaces:
SSLConnectionInfo

public class AcceptAllCertificates
extends java.lang.Object
implements SSLConnectionInfo

SSLConnectionInfo implementation to accept any certificate sent by the Server.

Version:
2.0
Author:
Xmas, Rodrigo Ruiz

Constructor Summary
AcceptAllCertificates()
          Constructor.
 
Method Summary
 javax.net.ssl.SSLSocketFactory getSSLSocketFactory()
          Gets an instance of a socket factory for SSL adapted to the specific connection type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AcceptAllCertificates

public AcceptAllCertificates()
Constructor.

Method Detail

getSSLSocketFactory

public javax.net.ssl.SSLSocketFactory getSSLSocketFactory()
                                                   throws KernelException
Gets an instance of a socket factory for SSL adapted to the specific connection type.

Specified by:
getSSLSocketFactory in interface SSLConnectionInfo
Returns:
A factory
Throws:
KernelException - If an error occurs


Copyright © 2007-2008 Grid Systems, S.A.. All Rights Reserved.