Package com.dotcms.publisher.util

Examples of com.dotcms.publisher.util.TrustFactory


        if ( LicenseUtil.getLevel() < 300 ) {
            throw new RuntimeException( "need an enterprise pro license to run this bundler" );
        }

        this.config = super.init( config );
        tFactory = new TrustFactory();

        return this.config;
    }
View Full Code Here


     * @throws DotDataException If fails retrieving end points
     */
    private void updateAuditStatus () throws DotPublisherException, DotDataException {

    ClientConfig clientConfig = new DefaultClientConfig();
    TrustFactory tFactory = new TrustFactory();

    if(Config.getStringProperty("TRUSTSTORE_PATH") != null && !Config.getStringProperty("TRUSTSTORE_PATH").trim().equals("")) {
        clientConfig.getProperties()
        .put(HTTPSProperties.PROPERTY_HTTPS_PROPERTIES, new HTTPSProperties(tFactory.getHostnameVerifier(), tFactory.getSSLContext()));
    }
        Client client = Client.create(clientConfig);
        WebResource webResource;

        List<PublishAuditStatus> pendingAudits = pubAuditAPI.getPendingPublishAuditStatus();
View Full Code Here

        return response( jsonResponse.toString(), false );
    }

    private Client getRESTClient() {
        TrustFactory tFactory = new TrustFactory();
        ClientConfig cc = new DefaultClientConfig();

        if(Config.getStringProperty("TRUSTSTORE_PATH") != null && !Config.getStringProperty("TRUSTSTORE_PATH").trim().equals("")) {
            cc.getProperties().put(HTTPSProperties.PROPERTY_HTTPS_PROPERTIES, new HTTPSProperties(tFactory.getHostnameVerifier(), tFactory.getSSLContext()));
        }
        final Client client = Client.create(cc);
        return client;
    }
View Full Code Here

TOP

Related Classes of com.dotcms.publisher.util.TrustFactory

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.