org.springframework.security.openid
Class RegexBasedAxFetchListFactory
java.lang.Object
org.springframework.security.openid.RegexBasedAxFetchListFactory
- All Implemented Interfaces:
- AxFetchListFactory
public class RegexBasedAxFetchListFactory
- extends Object
- implements AxFetchListFactory
- Since:
- 3.1
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RegexBasedAxFetchListFactory
public RegexBasedAxFetchListFactory(Map<String,List<OpenIDAttribute>> regexMap)
- Parameters:
regexMap
- map of regular-expressions (matching the identifier) to attributes which should be fetched for
that pattern.
createAttributeList
public List<OpenIDAttribute> createAttributeList(String identifier)
- Iterates through the patterns stored in the map and returns the list of attributes defined for the
first match. If no match is found, returns an empty list.
- Specified by:
createAttributeList
in interface AxFetchListFactory
- Parameters:
identifier
- the claimed_identity
- Returns:
- the attributes to fetch for this identifier