com.waveset.util
Class JSSE

java.lang.Object
  extended bycom.waveset.util.JSSE

public class JSSE
extends java.lang.Object

Bag of JSSE utilities


Nested Class Summary
static class JSSE.MyTrustManagerFactorySpi
           
static interface JSSE.ServerTrustManager
          Our own X509TrustManager interface which will work in either JDK1.3 or JDK1.4.
 
Constructor Summary
JSSE()
           
 
Method Summary
static JSSE.ServerTrustManager getTrustManager()
          Gets the current trust manager.
static void installIfAvailable()
          Deprecated. This method does nothing since we now only support jdk1.4+
static void setGlobalTrustManager(JSSE.ServerTrustManager manager)
          Sets the trust manager as the trust manager for the whole JVM.
static void setLocalTrustManager(JSSE.ServerTrustManager manager)
          Sets the trust manager as the trust manager for the current thread.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JSSE

public JSSE()
Method Detail

installIfAvailable

public static void installIfAvailable()
Deprecated. This method does nothing since we now only support jdk1.4+


setGlobalTrustManager

public static void setGlobalTrustManager(JSSE.ServerTrustManager manager)
Sets the trust manager as the trust manager for the whole JVM. Not suitable for calling within the app server. Only used by the BPE and the console. The method installIfAvailable must be called first for this to take effect.


setLocalTrustManager

public static void setLocalTrustManager(JSSE.ServerTrustManager manager)
Sets the trust manager as the trust manager for the current thread. This overrides the global trust manager.


getTrustManager

public static JSSE.ServerTrustManager getTrustManager()
Gets the current trust manager. Returns the thread local trust manager if there is one. Otherwise returns the global trust manager.