org.springframework.security.openid
Class RegexBasedAxFetchListFactory

java.lang.Object
  extended by org.springframework.security.openid.RegexBasedAxFetchListFactory
All Implemented Interfaces:
AxFetchListFactory

public class RegexBasedAxFetchListFactory
extends Object
implements AxFetchListFactory

Since:
3.1

Constructor Summary
RegexBasedAxFetchListFactory(Map<String,List<OpenIDAttribute>> regexMap)
           
 
Method Summary
 List<OpenIDAttribute> createAttributeList(String identifier)
          Iterates through the patterns stored in the map and returns the list of attributes defined for the first match.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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.
Method Detail

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