Class MetadataRequestedAttributeProcessor
java.lang.Object
se.swedenconnect.spring.saml.idp.attributes.MetadataRequestedAttributeProcessor
- All Implemented Interfaces:
RequestedAttributeProcessor
public class MetadataRequestedAttributeProcessor
extends Object
implements RequestedAttributeProcessor
A
RequestedAttributeProcessor
that will check if the SAML SP metadata entry contains any requested attributes
by locating them in the AttributeConsumingService
element.- Author:
- Martin Lindström
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionextractRequestedAttributes
(Saml2AuthnRequestAuthenticationToken authnRequestToken) Given theSaml2AuthnRequestAuthenticationToken
the method will locateRequestedAttribute
s.
-
Constructor Details
-
MetadataRequestedAttributeProcessor
public MetadataRequestedAttributeProcessor()
-
-
Method Details
-
extractRequestedAttributes
public Collection<RequestedAttribute> extractRequestedAttributes(Saml2AuthnRequestAuthenticationToken authnRequestToken) Given theSaml2AuthnRequestAuthenticationToken
the method will locateRequestedAttribute
s.- Specified by:
extractRequestedAttributes
in interfaceRequestedAttributeProcessor
- Parameters:
authnRequestToken
- the authentication request token- Returns:
- a (possibly empty) collection of
RequestedAttribute
s
-