Class AttributeRepositoryImpl
- java.lang.Object
-
- se.litsec.opensaml.saml2.attribute.AttributeRepositoryImpl
-
- All Implemented Interfaces:
AttributeRepository
public class AttributeRepositoryImpl extends Object implements AttributeRepository
A bean implementing theAttributeRepositoryinterface.- Author:
- Martin Lindström (martin.lindstrom@litsec.se)
-
-
Constructor Summary
Constructors Constructor Description AttributeRepositoryImpl(List<AttributeTemplate> attributes)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>getAttributeNames()Returns a list of all attribute names that are stored in the repository.AttributeTemplategetByFriendlyName(String friendlyName)Returns theAttributeTemplatefor the given friendly name.AttributeTemplategetByName(String name)Returns theAttributeTemplatefor the given attribute name.
-
-
-
Constructor Detail
-
AttributeRepositoryImpl
public AttributeRepositoryImpl(List<AttributeTemplate> attributes)
Constructor.- Parameters:
attributes- the attributes stored by the repository
-
-
Method Detail
-
getAttributeNames
public List<String> getAttributeNames()
Returns a list of all attribute names that are stored in the repository.- Specified by:
getAttributeNamesin interfaceAttributeRepository- Returns:
- a list of attribute names
-
getByName
public AttributeTemplate getByName(String name)
Returns theAttributeTemplatefor the given attribute name.- Specified by:
getByNamein interfaceAttributeRepository- Parameters:
name- the attribute name- Returns:
- the matching
AttributeTemplateornullif no match exists
-
getByFriendlyName
public AttributeTemplate getByFriendlyName(String friendlyName)
Returns theAttributeTemplatefor the given friendly name.- Specified by:
getByFriendlyNamein interfaceAttributeRepository- Parameters:
friendlyName- the attribute friendly name- Returns:
- the matching
AttributeTemplateornullif no match exists
-
-