Class ServiceEntityCategoryImpl

java.lang.Object
se.swedenconnect.opensaml.sweid.saml2.metadata.entitycategory.EntityCategoryImpl
se.swedenconnect.opensaml.sweid.saml2.metadata.entitycategory.ServiceEntityCategoryImpl
All Implemented Interfaces:
Serializable, EntityCategory, ServiceEntityCategory

public class ServiceEntityCategoryImpl extends EntityCategoryImpl implements ServiceEntityCategory
Implementation of the ServiceEntityCategory interface.
Author:
Martin Lindström (martin@idsec.se)
See Also:
  • Constructor Details

    • ServiceEntityCategoryImpl

      public ServiceEntityCategoryImpl()
      Default constructor.
    • ServiceEntityCategoryImpl

      public ServiceEntityCategoryImpl(@Nonnull String uri, @Nullable List<String> loaUris, @Nonnull AttributeSet attributeSet)
      Constructor assigning the URI, Level of Assurance URI:s and the attribute set.
      Parameters:
      uri - the unique URI
      loaUris - the Level of Assurance URI:s
      attributeSet - the attribute set
  • Method Details

    • getUri

      @Nonnull public String getUri()
      Each entity category is assigned an unique URI. This method returns this value.
      Specified by:
      getUri in interface EntityCategory
      Overrides:
      getUri in class EntityCategoryImpl
      Returns:
      the entity category URI
    • getType

      @Nonnull public EntityCategoryType getType()
      Returns the type of entity category.
      Specified by:
      getType in interface EntityCategory
      Overrides:
      getType in class EntityCategoryImpl
      Returns:
      the type of entity category
    • getLevelOfAssuranceUris

      @Nonnull public List<String> getLevelOfAssuranceUris()
      Returns the Level of Assurance URI:s associated with this service entity category.

      The identifier indicates that only services conforming to at least the specified level of assurance have the capability to satisfy the security requirements of the Service Provider. An Identity Provider declaring this Service Entity Category MUST be able to provide this level of assurance.

      Specified by:
      getLevelOfAssuranceUris in interface ServiceEntityCategory
      Returns:
      the URI:s representing the Level of Assurance, or an empty list if no level of assurance is associated with the category
    • setLevelOfAssuranceUris

      public void setLevelOfAssuranceUris(@Nullable List<String> loaUris)
      Sets the Level of Assurance URI:s associated with this service entity category.
      Parameters:
      loaUris - the LoA URI:s
    • getAttributeSet

      @Nonnull public AttributeSet getAttributeSet()
      Returns the attribute set tied to this service entity category.

      The attribute set Indicates that only services that implement attribute release according to the identified attribute set have the capability to satisfy the minimum attribute requirements of the Service Provider. An Identity Provider declaring this Service Entity Category MUST be able to provide these attributes.

      Specified by:
      getAttributeSet in interface ServiceEntityCategory
      Returns:
      the attribute set
    • setAttributeProfile

      public void setAttributeProfile(@Nonnull AttributeSet attributeSet)
      Assigns the attribute set tied to this service entity category.
      Parameters:
      attributeSet - the attribute set to assign