Class ImplicitRequestedAttribute
- All Implemented Interfaces:
Serializable
ImplicitRequestedAttribute
is used to represent a requested attribute when the requirement is "implicit",
meaning that it is not explicitly stated in an AuthnRequest
or EntityDescriptor
.
The Swedish eID framework defines "service entity categories", that when declared by a Service Provider, states requirements regarding requested attributes. This is an implicit requirement about which attributes an SP wishes to receive. The problem here is that attributes are grouped together in "attribute sets", and an SP may declare more than one service entity category, and an IdP may deliver attributes according to one or more service entity category. Therefore, if an SP declared more than one service entity category and the IdP supports both, we can not state that all attributes are "required", even though they are required within its service entity category. It's poor design from the beginning, and we have to handle it in the best way we can.
- Author:
- Martin Lindström
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class se.swedenconnect.spring.saml.idp.attributes.UserAttribute
UserAttribute.UnknownAttributeValue
-
Field Summary
Fields inherited from class se.swedenconnect.spring.saml.idp.attributes.UserAttribute
DEFAULT_NAME_FORMAT
-
Constructor Summary
ConstructorDescriptionImplicitRequestedAttribute
(String origin, String id, String friendlyName, boolean isRequired) Constructor. -
Method Summary
Methods inherited from class se.swedenconnect.spring.saml.idp.attributes.RequestedAttribute
isRequired, setRequired
Methods inherited from class se.swedenconnect.spring.saml.idp.attributes.UserAttribute
getFriendlyName, getId, getNameFormat, getStringValues, getValues, setFriendlyName, setNameFormat, setValue, setValues, toOpenSamlAttribute, valuesToString
-
Constructor Details
-
ImplicitRequestedAttribute
public ImplicitRequestedAttribute(String origin, String id, String friendlyName, boolean isRequired) Constructor.- Parameters:
origin
- the origin to the implicit "requested attribute requirement", normally a URIid
- the attribute ID (name)friendlyName
- the attribute friendly nameisRequired
- whether the attribute is "required", meaning that the requester requires it to be included in a resulting assertion
-
-
Method Details
-
getOrigin
Gets the origin to the implicit "requested attribute requirement". Normally a URI.- Returns:
- the origin (URI)
-
toString
- Overrides:
toString
in classRequestedAttribute
-