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
An
AttributeProducer that releases attributes according to the
Technical Specifications for the Swedish eID
Framework.
The following rules are applied:
- All attributes that are explicitly, or implicitly (via entity categories), requested are included (by inheriting
from
DefaultAttributeProducer). - The
signMessageDigestattribute if a SignMessage was displayed. See section 3.2.4 of Attribute Specification for the Swedish eID Framework.
- Author:
- Martin Lindström
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionse.swedenconnect.opensaml.sweid.saml2.signservice.SADFactoryGets theSADFactory.releaseAttributes(Saml2UserAuthentication userAuthentication) Releases all attributes that are explicitly, or implicitly, requested.voidsetSadFactory(se.swedenconnect.opensaml.sweid.saml2.signservice.SADFactory sadFactory) Assigns theSADFactory.
-
Constructor Details
-
SwedenConnectAttributeProducer
public SwedenConnectAttributeProducer()
-
-
Method Details
-
releaseAttributes
Releases all attributes that are explicitly, or implicitly, requested.- Specified by:
releaseAttributesin interfaceAttributeProducer- Overrides:
releaseAttributesin classDefaultAttributeProducer- Parameters:
userAuthentication- the user authentication token- Returns:
- a (possibly empty) list of attributes
-
getSadFactory
public se.swedenconnect.opensaml.sweid.saml2.signservice.SADFactory getSadFactory()Gets theSADFactory.- Returns:
SADFactoryornullif none has been assigned
-
setSadFactory
public void setSadFactory(se.swedenconnect.opensaml.sweid.saml2.signservice.SADFactory sadFactory) Assigns theSADFactory.- Parameters:
sadFactory- aSADFactory
-