Class EidasAttributeValueConverter

java.lang.Object
se.swedenconnect.spring.saml.idp.attributes.eidas.EidasAttributeValueConverter

public class EidasAttributeValueConverter extends Object
Helper class for convering eIDAS attribute values to and from UserAttributes.
Author:
Martin Lindström
  • Method Details

    • isEidasAttribute

      public static boolean isEidasAttribute(Class<?> valueType)
      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 and false 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 attribute
      valueType - the value type for the attribute value(s)
      Returns:
      a list of values