Search in sources :

Example 1 with Ssl

use of org.glassfish.appclient.client.acc.config.Ssl in project Payara by payara.

the class AppClientSecurityInfoImpl method setSSLData.

private void setSSLData(List<TargetServer> tServers) {
    try {
        // Set the SSL related properties for ORB
        TargetServer tServer = tServers.get(0);
        // TargetServer is required.
        // temp solution to target-server+ change in DTD
        // assuming that multiple servers can be specified but only 1st
        // first one will be used.
        Security security = tServer.getSecurity();
        if (security == null) {
            _logger.fine("No Security input set in ClientContainer.xml");
            // do nothing
            return;
        }
        Ssl ssl = security.getSsl();
        if (ssl == null) {
            _logger.fine("No SSL input set in ClientContainer.xml");
            // do nothing
            return;
        }
        // XXX do not use NSS in this release
        // CertDb   certDB  = security.getCertDb();
        sslUtils.setAppclientSsl(convert(ssl));
        this.appClientSSLUtil.setAppClientSSL(convert(ssl));
    } catch (Exception ex) {
    }
}
Also used : TargetServer(org.glassfish.appclient.client.acc.config.TargetServer) Security(org.glassfish.appclient.client.acc.config.Security) Ssl(org.glassfish.appclient.client.acc.config.Ssl)

Aggregations

Security (org.glassfish.appclient.client.acc.config.Security)1 Ssl (org.glassfish.appclient.client.acc.config.Ssl)1 TargetServer (org.glassfish.appclient.client.acc.config.TargetServer)1