Class ImplicitRequestedAttribute

All Implemented Interfaces:
Serializable

public class ImplicitRequestedAttribute extends RequestedAttribute
An 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.

See Entity Categories for the Swedish eID Framework.

Author:
Martin Lindström
See Also:
  • 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 URI
      id - the attribute ID (name)
      friendlyName - the attribute friendly name
      isRequired - whether the attribute is "required", meaning that the requester requires it to be included in a resulting assertion
  • Method Details

    • getOrigin

      public String getOrigin()
      Gets the origin to the implicit "requested attribute requirement". Normally a URI.
      Returns:
      the origin (URI)
    • toString

      public String toString()
      Overrides:
      toString in class RequestedAttribute