Class EntityCategoryRequestedAttributeProcessor
java.lang.Object
se.swedenconnect.spring.saml.idp.attributes.EntityCategoryRequestedAttributeProcessor
- All Implemented Interfaces:
RequestedAttributeProcessor
public class EntityCategoryRequestedAttributeProcessor
extends Object
implements RequestedAttributeProcessor
A
RequestedAttributeProcessor that extracts the requested attributes from declared entity categories. See Entity
Categories for the Swedish eID Framework.- Author:
- Martin Lindström
-
Constructor Summary
ConstructorsConstructorDescriptionEntityCategoryRequestedAttributeProcessor(Collection<String> idpDeclaredEntityCategories) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionextractRequestedAttributes(Saml2AuthnRequestAuthenticationToken authnRequestToken) Given theSaml2AuthnRequestAuthenticationTokenthe method will locateRequestedAttributes.voidsetEntityCategoryRegistry(se.swedenconnect.opensaml.sweid.saml2.metadata.entitycategory.EntityCategoryRegistry entityCategoryRegistry) Assigns a customEntityCategoryRegistry.
-
Constructor Details
-
EntityCategoryRequestedAttributeProcessor
Constructor.- Parameters:
idpDeclaredEntityCategories- the entity categories declared by this IdP
-
-
Method Details
-
setEntityCategoryRegistry
public void setEntityCategoryRegistry(se.swedenconnect.opensaml.sweid.saml2.metadata.entitycategory.EntityCategoryRegistry entityCategoryRegistry) Assigns a customEntityCategoryRegistry. Defaults to the categories defined in Entity Categories for the Swedish eID Framework.- Parameters:
entityCategoryRegistry- theEntityCategoryRegistry
-
extractRequestedAttributes
public Collection<RequestedAttribute> extractRequestedAttributes(Saml2AuthnRequestAuthenticationToken authnRequestToken) Given theSaml2AuthnRequestAuthenticationTokenthe method will locateRequestedAttributes.- Specified by:
extractRequestedAttributesin interfaceRequestedAttributeProcessor- Parameters:
authnRequestToken- the authentication request token- Returns:
- a (possibly empty) collection of
RequestedAttributes
-