Package net.shibboleth.idp.attribute
Class AttributesMapContainer
java.lang.Object
net.shibboleth.idp.attribute.AttributesMapContainer
- All Implemented Interfaces:
Supplier<Multimap<String,
IdPAttribute>>
public final class AttributesMapContainer
extends Object
implements Supplier<Multimap<String,IdPAttribute>>
Container for decoded attributes. This gives us a distinguished class to look for in the
XMLObject.getObjectMetadata()
.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Multimap<String,
IdPAttribute> The map we are encapsulating. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget()
Shorthand method that returns a collapsed copy of the String values of a given IdPAttribute in the container, or an empty collection.
-
Field Details
-
providedValue
The map we are encapsulating.
-
-
Constructor Details
-
AttributesMapContainer
Constructor.- Parameters:
value
- the value to return.
-
-
Method Details
-
get
- Specified by:
get
in interfaceSupplier<Multimap<String,
IdPAttribute>>
-
getStringValues
@Nonnull @NonnullElements @NotLive @Unmodifiable public Collection<String> getStringValues(@Nonnull @NotEmpty String id) Shorthand method that returns a collapsed copy of the String values of a given IdPAttribute in the container, or an empty collection.- Parameters:
id
- attribute ID- Returns:
- unmodifiable collection of string values
-