Examples of TrustedEntity


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

    }

    private void processStaticValues(IdentityAssertionTrust iat) {
        TrustedEntity[] etList = iat.getTrustedEntity();
        for (int i = 0; i < etList.length; i++) {
            TrustedEntity et = etList[i];
            String messageDirection = et.getTrustedAs();
            String ip = et.getIpAddress();
            String hostName = et.getHostName();
            String hostToIP = "";
            addToList(ip, messageDirection);
            if (hostName != null && hostName.length() > 0) {
                hostToIP = getIPAddress(hostName);
                addToList(hostToIP, messageDirection);
View Full Code Here

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

                   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});
View Full Code Here

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

    /**
     * Method to generate entity ids automatically for trusted-entity
     */
    public String generateEntityId(IdentityAssertionTrust iat) {
        String id = null;
        TrustedEntity tEntity = null;
        for (int i=0; ; i++) {
            id = "entityid-" + i;
            tEntity = iat.getTrustedEntityById(id);
            if (tEntity == null)
                break;
View Full Code Here

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

        if (tHandler != null) {
            String msg = _strMgr.getString("TrustHandlerAlreadyExistsForTrustConfig", trustId);
            throw new MBeanConfigException(msg);
        }
           
        TrustedEntity tEntity = new TrustedEntity();
        if (id == null)
            id = generateEntityId(trustConfig);

        tEntity.setId(id);

        if (trustedAs != null)
            tEntity.setTrustedAs(trustedAs);

        tEntity.setIpAddress(ipAdd);
        if (host != null)
            tEntity.setHostName(host);
        if (principal != null)
            tEntity.setPrincipal(principal);

        trustConfig.addTrustedEntity(tEntity);

        return true;
    }
View Full Code Here

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

        {
            securityService.removeIdentityAssertionTrust(trustConfig);
            return true;
        }
        // get the trusted entity from the trust config and remove
        TrustedEntity tEntity = trustConfig.getTrustedEntityById(entityId);
        if (tEntity == null)
        {
            String msg = _strMgr.getString("TrustedEntityDoesntExist", entityId);
            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.