FileDocCategorySizeDatePackage
AdminRMISSLClientSocketFactoryEnvImpl.javaAPI DocGlassfish v2 API5238Fri May 04 22:30:32 BST 2007com.sun.appserv.management.client

AdminRMISSLClientSocketFactoryEnvImpl

public final class AdminRMISSLClientSocketFactoryEnvImpl extends Object implements AdminRMISSLClientSocketFactoryEnv
Not for public use

Class which encapsulates knowledge of how to exchange data between the RMISSLClientSocketFactory stub and the JVM into which it gets downloaded.

The client code configures this class so the RMI client stub may obtain any environmental overrides, thus enabling the client to control how the RMI stub behaves.

This class is global for all outgoing connections for RMI.

Fields Summary
private static AdminRMISSLClientSocketFactoryEnvImpl
INSTANCE
private transient TrustManager[]
mTrustManagers
private transient HandshakeCompletedListener
mHandshakeCompletedListener
private transient boolean
mTrace
private transient Map
mValues
Constructors Summary
private AdminRMISSLClientSocketFactoryEnvImpl()

    	// important for server side to have these in place, or they
    	// will look for a truststore
    	mTrustManagers	= new TrustManager[0];
    	
    	mValues		= new HashMap<String,Object>();
    
Methods Summary
public javax.net.ssl.HandshakeCompletedListenergetHandshakeCompletedListener()

    	return( mHandshakeCompletedListener );
    
public static synchronized com.sun.appserv.management.client.AdminRMISSLClientSocketFactoryEnvImplgetInstance()

	
	
		   
	
	
		// these should only ever be a single instance
		if ( INSTANCE == null )
		{
			INSTANCE	= new AdminRMISSLClientSocketFactoryEnvImpl();
		}
		return( INSTANCE );
	
public booleangetTrace()

    	return( mTrace );
    
public javax.net.ssl.TrustManager[]getTrustManagers()

    	return( mTrustManagers );
    
public java.lang.ObjectgetValue(java.lang.String key)

    	return( mValues.get( key ) );
    
public voidsetHandshakeCompletedListener(javax.net.ssl.HandshakeCompletedListener listener)
Set a HandshakeCompletedListener (optional).

param
listener

    	mHandshakeCompletedListener	= listener;
    
public voidsetTrace(boolean trace)
Set tracing on or off.

param
trace

    	mTrace	= trace;
    
public voidsetTrustManagers(javax.net.ssl.TrustManager[] trustManagers)
Set the TrustManagers. Removes any existing trust-store and trust-store password as the TrustManagers will be used instead.

param
trustManagers

    	mTrustManagers		= trustManagers;
    
public java.lang.ObjectsetValue(java.lang.String key, java.lang.Object value)
No values are currently supported; this routine exists for future extensions.

param
key
param
value

    	return( mValues.put( key, value ) );