com.sibvisions.rad.remote.http
Class HttpsTrustManager

java.lang.Object
  extended by com.sibvisions.rad.remote.http.HttpsTrustManager
All Implemented Interfaces:
TrustManager, X509TrustManager

public class HttpsTrustManager
extends Object
implements X509TrustManager

The HttpsTrustManager is a X509TrustManager without restrictions.


Constructor Summary
HttpsTrustManager()
           
 
Method Summary
 void addUrl(URL pUrl)
          Adds an URL to the list of allowed connections.
 void checkClientTrusted(X509Certificate[] pChain, String pAuthType)
          
 void checkServerTrusted(X509Certificate[] pChain, String pAuthType)
          
 X509Certificate[] getAcceptedIssuers()
          
 void removeUrl(URL pUrl)
          Removes an URL from te list of allowed connections.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpsTrustManager

public HttpsTrustManager()
Method Detail

checkClientTrusted

public void checkClientTrusted(X509Certificate[] pChain,
                               String pAuthType)
                        throws CertificateException

Specified by:
checkClientTrusted in interface X509TrustManager
Throws:
CertificateException

checkServerTrusted

public void checkServerTrusted(X509Certificate[] pChain,
                               String pAuthType)
                        throws CertificateException

Specified by:
checkServerTrusted in interface X509TrustManager
Throws:
CertificateException

getAcceptedIssuers

public X509Certificate[] getAcceptedIssuers()

Specified by:
getAcceptedIssuers in interface X509TrustManager

addUrl

public void addUrl(URL pUrl)
Adds an URL to the list of allowed connections.

Parameters:
pUrl - the connection URL

removeUrl

public void removeUrl(URL pUrl)
Removes an URL from te list of allowed connections.

Parameters:
pUrl - the connection URL


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.