Package com.sun.enterprise.admin.server.core

Examples of com.sun.enterprise.admin.server.core.InMemoryX509TrustManager


        mCertNickname = System.getProperty(
            SystemPropertyConstants.AGENT_CERT_NICKNAME);
    }

    protected TrustManager[] getTrustManagers() {
        InMemoryX509TrustManager mgr = null;
        try {
           
            String instanceRoot = System.getProperty(
                SystemPropertyConstants.INSTANCE_ROOT_PROPERTY);
            String serverName = System.getProperty(
                SystemPropertyConstants.SERVER_NAME);
           
            System.setProperty(SystemPropertyConstants.INSTANCE_ROOT_PROPERTY,
                System.getProperty(SystemPropertyConstants.AGENT_ROOT_PROPERTY));
            System.setProperty(SystemPropertyConstants.SERVER_NAME,
                System.getProperty(SystemPropertyConstants.AGENT_NAME_PROPERTY));
            mgr = new InMemoryX509TrustManager(mCertNickname);

            System.setProperty(SystemPropertyConstants.INSTANCE_ROOT_PROPERTY, instanceRoot);
            System.setProperty(SystemPropertyConstants.SERVER_NAME, serverName);
        } catch (Throwable t) {
            t.printStackTrace();
View Full Code Here


        mCertNickName = certNickname;
    }

    protected TrustManager[] getTrustManagers() {
        return new TrustManager[] {
            new InMemoryX509TrustManager(mCertNickName) };
    }
View Full Code Here

            "/config/cert8.db");
        if (dasCertDBFile.exists()) {
            return new TrustManager [] {
                new UnifiedX509TrustManager(
                    new X509TrustManager[] {
                        new InMemoryX509TrustManager(mCertNickName)
                    }
                )
            };
        } else {
            return (new TrustManager[] { new SunOneBasicX509TrustManager()} );
View Full Code Here

TOP

Related Classes of com.sun.enterprise.admin.server.core.InMemoryX509TrustManager

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.