Class RegexBasedAxFetchListFactory
- java.lang.Object
-
- org.springframework.security.openid.RegexBasedAxFetchListFactory
-
- All Implemented Interfaces:
AxFetchListFactory
public class RegexBasedAxFetchListFactory extends java.lang.Object implements AxFetchListFactory
- Since:
- 3.1
-
-
Constructor Summary
Constructors Constructor Description RegexBasedAxFetchListFactory(java.util.Map<java.lang.String,java.util.List<OpenIDAttribute>> regexMap)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<OpenIDAttribute>
createAttributeList(java.lang.String identifier)
Iterates through the patterns stored in the map and returns the list of attributes defined for the first match.
-
-
-
Constructor Detail
-
RegexBasedAxFetchListFactory
public RegexBasedAxFetchListFactory(java.util.Map<java.lang.String,java.util.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 java.util.List<OpenIDAttribute> createAttributeList(java.lang.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 interfaceAxFetchListFactory
- Parameters:
identifier
- the claimed_identity- Returns:
- the attributes to fetch for this identifier
-
-