Example usage for org.springframework.security.core.authority.mapping MappableAttributesRetriever getMappableAttributes

List of usage examples for org.springframework.security.core.authority.mapping MappableAttributesRetriever getMappableAttributes

Introduction

In this page you can find the example usage for org.springframework.security.core.authority.mapping MappableAttributesRetriever getMappableAttributes.

Prototype

Set<String> getMappableAttributes();

Source Link

Document

Implementations of this method should return a set of all string attributes which can be mapped to GrantedAuthoritys.

Usage

From source file:org.jasig.springframework.security.portlet.authentication.PortletPreAuthenticatedAuthenticationDetailsSource.java

/**
 * @param portletMappableRolesRetriever//ww  w . j av a2 s.co  m
 *            The MappableAttributesRetriever to use
 */
public void setMappableRolesRetriever(MappableAttributesRetriever portletMappableRolesRetriever) {
    this.portletMappableRoles = Collections
            .unmodifiableSet(portletMappableRolesRetriever.getMappableAttributes());
}

From source file:org.springframework.security.web.authentication.preauth.j2ee.J2eeBasedPreAuthenticatedWebAuthenticationDetailsSource.java

/**
 * @param aJ2eeMappableRolesRetriever The MappableAttributesRetriever to use
 *//*from ww w .  j  ava  2 s .  c o m*/
public void setMappableRolesRetriever(MappableAttributesRetriever aJ2eeMappableRolesRetriever) {
    this.j2eeMappableRoles = Collections.unmodifiableSet(aJ2eeMappableRolesRetriever.getMappableAttributes());
}