public class

WebXmlMappableAttributesRetriever

extends Object
implements InitializingBean ResourceLoaderAware MappableAttributesRetriever
java.lang.Object
   ↳ org.springframework.security.web.authentication.preauth.j2ee.WebXmlMappableAttributesRetriever

Class Overview

This MappableAttributesRetriever implementation reads the list of defined J2EE roles from a web.xml file and returns these from {getMappableAttributes().

Summary

Fields
protected final Log logger
Public Constructors
WebXmlMappableAttributesRetriever()
Public Methods
void afterPropertiesSet()
Loads the web.xml file using the configured ResourceLoader and parses the role-name elements from it, using these as the set of mappableAttributes.
Set<String> getMappableAttributes()
Implementations of this method should return a set of all string attributes which can be mapped to GrantedAuthoritys.
void setResourceLoader(ResourceLoader resourceLoader)
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.springframework.beans.factory.InitializingBean
From interface org.springframework.context.ResourceLoaderAware
From interface org.springframework.security.core.authority.mapping.MappableAttributesRetriever

Fields

protected final Log logger

Public Constructors

public WebXmlMappableAttributesRetriever ()

Public Methods

public void afterPropertiesSet ()

Loads the web.xml file using the configured ResourceLoader and parses the role-name elements from it, using these as the set of mappableAttributes.

Throws
Exception

public Set<String> getMappableAttributes ()

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

Returns
  • set of all mappable roles

public void setResourceLoader (ResourceLoader resourceLoader)