org.edg.security.authorization.map
Interface AttributeMapCreator
- All Known Implementing Classes:
- CachedMapCreator, DbMapCreator, FileMapCreator, RegexMapCreator, TableMapCreator
- public interface AttributeMapCreator
Creates a Map from a supplied XML definition.
By a minimum, The following methods MUST be supported in the created Map
implementation
-
get()
, returning a List
of matched value objects (or null)
-
keySet()
If a Map doesn't support one of the methods, an UnsupportedOperationException
must be thrown.
- Version:
- %I%, %G%
- Author:
- Olle Mulmo
- See Also:
Map
,
UnsupportedOperationException
create
public java.util.Map create(AttributeMapFactory factory,
org.w3c.dom.Element config)
throws java.lang.Exception
- Method create.
Creates a Map from the supplied XML definition.
- Parameters:
config
- The configuration.
- Returns:
- Map The resulting map, mapping a key to a List of String values
- Throws:
java.lang.Exception
- In case of an initialization error