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
signMessageDigest
attribute if a SignMessage was displayed. See section 3.2.4 of Attribute Specification for the Swedish eID Framework.
- Author:
- Martin Lindström
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionse.swedenconnect.opensaml.sweid.saml2.signservice.SADFactory
Gets theSADFactory
.List
<org.opensaml.saml.saml2.core.Attribute> releaseAttributes
(Saml2UserAuthentication userAuthentication) Releases all attributes that are explicitly, or implicitly, requested.void
setSadFactory
(se.swedenconnect.opensaml.sweid.saml2.signservice.SADFactory sadFactory) Assigns theSADFactory
.
-
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 interfaceAttributeProducer
- Overrides:
releaseAttributes
in 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:
SADFactory
ornull
if none has been assigned
-
setSadFactory
public void setSadFactory(se.swedenconnect.opensaml.sweid.saml2.signservice.SADFactory sadFactory) Assigns theSADFactory
.- Parameters:
sadFactory
- aSADFactory
-