Examples of TrustHandler


Examples of com.sun.enterprise.config.serverbeans.TrustHandler

        trustConfig.setId(trustId);
        trustConfig.setIsDefault(Boolean.parseBoolean(isDefault));

        // create the trust handler
        if ( cName != null) {
            TrustHandler tHandler = new TrustHandler();
            tHandler.setClassName(cName);
            securityService.addIdentityAssertionTrust(trustConfig);
            if (props != null) {
                tHandler.setElementProperty(convertPropertiesToElementProperties(props));
            }
            trustConfig.setTrustHandler(tHandler);
//            return trustId;
            return getMBeanRegistry().getMbeanObjectName("trust-handler",
                   new String[]{getDomainName(), configName, trustId});
        }

        // ip address is must for trusted entity config
        if ( ipAdd != null) {
            TrustedEntity tEntity = new TrustedEntity();
            if (entityId == null)
                entityId = "entityid-0";
            tEntity.setId(entityId);
            if (trustedAs != null)
                tEntity.setTrustedAs(trustedAs);
            tEntity.setIpAddress(ipAdd);
            tEntity.setPrincipal(principal);
            tEntity.setHostName(hostName);
            trustConfig.addTrustedEntity(tEntity);
            securityService.addIdentityAssertionTrust(trustConfig);
//            return trustId;
            return getMBeanRegistry().getMbeanObjectName("trusted-entity",
                   new String[]{getDomainName(), configName, trustId, entityId});
        }

        TrustHandler tHandler = new TrustHandler();
        // use the default trust handler implementation
        tHandler.setClassName(DEFAULT_TRUST_HANDLER);

        trustConfig.setTrustHandler(tHandler);
        securityService.addIdentityAssertionTrust(trustConfig);

//        return trustId;
View Full Code Here

Examples of com.sun.enterprise.config.serverbeans.TrustHandler

            String msg = _strMgr.getString("IdentityTrustDoesntExist", trustId);
            throw new MBeanConfigException(msg);
        }

        // check if a trust handler is already configured for this trust config
        TrustHandler tHandler = trustConfig.getTrustHandler();
        if (tHandler != null) {
            String msg = _strMgr.getString("TrustHandlerAlreadyExistsForTrustConfig", trustId);
            throw new MBeanConfigException(msg);
        }
           
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.