Class DefaultAttributeProducer

java.lang.Object
se.swedenconnect.spring.saml.idp.attributes.release.DefaultAttributeProducer
All Implemented Interfaces:
AttributeProducer
Direct Known Subclasses:
SwedenConnectAttributeProducer

public class DefaultAttributeProducer extends Object implements AttributeProducer
The default AttributeProducer that returns all attributes that are among the "requested list" (see Saml2UserAuthentication.getAuthnRequirements()).
Author:
Martin Lindström
  • Constructor Details

    • DefaultAttributeProducer

      public DefaultAttributeProducer()
  • Method Details

    • releaseAttributes

      public List<org.opensaml.saml.saml2.core.Attribute> releaseAttributes(Saml2UserAuthentication userAuthentication)
      Releases all attributes that are explicitly, or implicitly, requested.
      Specified by:
      releaseAttributes in interface AttributeProducer
      Parameters:
      userAuthentication - the user authentication token
      Returns:
      a (possibly empty) list of attributes