Class AttributeUtils
java.lang.Object
se.swedenconnect.opensaml.saml2.attribute.AttributeUtils
Helper methods for accessing attribute values. See also
AttributeBuilder.- Author:
- Martin Lindström (martin@idsec.se)
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic AttributegetAttribute(String name, List<Attribute> attributes) Returns an attribute with a given name from an attribute list.static StringgetAttributeStringValue(Attribute attribute) Given a single-valued string attribute, this method returns its string value.getAttributeStringValues(Attribute attribute) Given an attribute holding string values this method will return a list of these values.static <T extends XMLObject>
TgetAttributeValue(Attribute attribute, Class<T> type) Given a single-valued attribute, this method returns its value (of the given type).getAttributeValues(Attribute attribute, Class<T> type) Returns the attribute values of the given type.
-
Method Details
-
getAttributeStringValues
-
getAttributeStringValue
-
getAttributeValues
-
getAttributeValue
Given a single-valued attribute, this method returns its value (of the given type).- Type Parameters:
T- the value type- Parameters:
attribute- the attributetype- the type to match- Returns:
- the value, or
null
-
getAttribute
-