FileDocCategorySizeDatePackage
NodeAgentSyncWithDAS_TlsClientEnvSetter.javaAPI DocGlassfish v2 API3644Fri May 04 22:33:54 BST 2007com.sun.enterprise.admin.server.core.jmx.ssl

NodeAgentSyncWithDAS_TlsClientEnvSetter

public class NodeAgentSyncWithDAS_TlsClientEnvSetter extends ServerClientEnvSetter implements com.sun.enterprise.admin.util.IAdminConstants
This class is meant specifically for the setup of client side environment when the Node agent synchronizes with DAS
author
Nandini.Ektare@sun.com
since
Sun Java System Application Server 8.2ee

Fields Summary
Constructors Summary
public NodeAgentSyncWithDAS_TlsClientEnvSetter(String certNickname)

        super(certNickname);
    
Methods Summary
protected javax.net.ssl.TrustManager[]getTrustManagers()

        // if you find the cert.db in the nodeagent filelayout 
        File dasCertDBFile = new File( System.getProperty(
            SystemPropertyConstants.INSTANCE_ROOT_PROPERTY) +
            "/config/cert8.db");
        if (dasCertDBFile.exists()) {
            return new TrustManager [] {
                new UnifiedX509TrustManager( 
                    new X509TrustManager[] {
                        new InMemoryX509TrustManager(mCertNickName)
                    } 
                ) 
            };
        } else {
            return (new TrustManager[] { new SunOneBasicX509TrustManager()} );
        }