Package org.jboss.security.mapping

Examples of org.jboss.security.mapping.MappingManager


        }
    }

    @SuppressWarnings("deprecation")
    protected void populateSubject() {
        MappingManager mappingManager = getMappingManager();
        if (mappingManager == null) {
            return;
        }

        MappingContext<Principal> principalMappingContext = null;
        MappingContext<RoleGroup> roleMappingContext = null;
        try {
            principalMappingContext = mappingManager.getMappingContext(MappingType.PRINCIPAL.toString());
        } catch (NoSuchMethodError nse) {
            principalMappingContext = mappingManager.getMappingContext(Principal.class);
        }

        try {
            roleMappingContext = mappingManager.getMappingContext(MappingType.ROLE.toString());
        } catch (NoSuchMethodError nse) {
            roleMappingContext = mappingManager.getMappingContext(RoleGroup.class);
        }

        Map<String, Object> contextMap = new HashMap<String, Object>();
        contextMap.put(SHARED_TOKEN, this.samlToken);
View Full Code Here

TOP

Related Classes of org.jboss.security.mapping.MappingManager

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.