Class EidasAttributeValueConverter
java.lang.Object
se.swedenconnect.spring.saml.idp.attributes.eidas.EidasAttributeValueConverter
Helper class for convering eIDAS attribute values to and from
UserAttribute
s.- Author:
- Martin Lindström
-
Method Summary
Modifier and TypeMethodDescriptionstatic List
<? extends Serializable> Extracts the attribute values from an eIDAS attribute.static boolean
isEidasAttribute
(Class<?> valueType) Predicate that tells if the supplied type is an eIDAS attribute type
-
Method Details
-
isEidasAttribute
Predicate that tells if the supplied type is an eIDAS attribute type- Parameters:
valueType
- the value type- Returns:
true
if the supplied type is an eIDAS attribute type andfalse
otherwise
-
getValues
public static List<? extends Serializable> getValues(org.opensaml.saml.saml2.core.Attribute attribute, Class<?> valueType) Extracts the attribute values from an eIDAS attribute.- Parameters:
attribute
- the attributevalueType
- the value type for the attribute value(s)- Returns:
- a list of values
-