Class WebXmlMappableAttributesRetriever
- java.lang.Object
-
- org.springframework.security.web.authentication.preauth.j2ee.WebXmlMappableAttributesRetriever
-
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.beans.factory.InitializingBean,org.springframework.context.ResourceLoaderAware,org.springframework.security.core.authority.mapping.MappableAttributesRetriever
public class WebXmlMappableAttributesRetriever extends java.lang.Object implements org.springframework.context.ResourceLoaderAware, org.springframework.security.core.authority.mapping.MappableAttributesRetriever, org.springframework.beans.factory.InitializingBeanThis MappableAttributesRetriever implementation reads the list of defined J2EE roles from a web.xml file and returns these from {getMappableAttributes().- Since:
- 2.0
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.commons.logging.Loglogger
-
Constructor Summary
Constructors Constructor Description WebXmlMappableAttributesRetriever()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterPropertiesSet()Loads the web.xml file using the configured ResourceLoader and parses the role-name elements from it, using these as the set of mappableAttributes.java.util.Set<java.lang.String>getMappableAttributes()voidsetResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader)
-
-
-
Method Detail
-
setResourceLoader
public void setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader)
- Specified by:
setResourceLoaderin interfaceorg.springframework.context.ResourceLoaderAware
-
getMappableAttributes
public java.util.Set<java.lang.String> getMappableAttributes()
- Specified by:
getMappableAttributesin interfaceorg.springframework.security.core.authority.mapping.MappableAttributesRetriever
-
afterPropertiesSet
public void afterPropertiesSet() throws java.lang.ExceptionLoads the web.xml file using the configured ResourceLoader and parses the role-name elements from it, using these as the set of mappableAttributes.- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
java.lang.Exception
-
-