Class SwedenConnectAttributeProducer

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

public class SwedenConnectAttributeProducer extends DefaultAttributeProducer
An AttributeProducer that releases attributes according to the Technical Specifications for the Swedish eID Framework.

The following rules are applied:

Author:
Martin Lindström
  • Constructor Details

    • SwedenConnectAttributeProducer

      public SwedenConnectAttributeProducer()
  • 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
      Overrides:
      releaseAttributes in class DefaultAttributeProducer
      Parameters:
      userAuthentication - the user authentication token
      Returns:
      a (possibly empty) list of attributes
    • getSadFactory

      public se.swedenconnect.opensaml.sweid.saml2.signservice.SADFactory getSadFactory()
      Gets the SADFactory.
      Returns:
      SADFactory or null if none has been assigned
    • setSadFactory

      public void setSadFactory(se.swedenconnect.opensaml.sweid.saml2.signservice.SADFactory sadFactory)
      Assigns the SADFactory.
      Parameters:
      sadFactory - a SADFactory