Enum Class EntityCategoryType

java.lang.Object
java.lang.Enum<EntityCategoryType>
se.swedenconnect.opensaml.sweid.saml2.metadata.entitycategory.EntityCategoryType
All Implemented Interfaces:
Serializable, Comparable<EntityCategoryType>, Constable

public enum EntityCategoryType extends Enum<EntityCategoryType>
Represents the different Entity Category types defined within the Swedish eiD Framework.
Author:
Martin Lindström (martin@idsec.se)
  • Enum Constant Details

    • SERVICE_ENTITY

      public static final EntityCategoryType SERVICE_ENTITY
      Meaning for a consuming service: Each declared category represents an alternative set of requirements for the service. Meaning for a providing service: Represents the ability to deliver assertions in accordance with each declared category.
    • SERVICE_PROPERTY

      public static final EntityCategoryType SERVICE_PROPERTY
      Meaning for a consuming service: Represents a property of this service. Meaning for a providing service: Represents the ability to deliver assertions to a consuming service that has the declared property.
    • SERVICE_TYPE

      public static final EntityCategoryType SERVICE_TYPE
      Declares the type of service provided by a consuming service.
    • SERVICE_CONTRACT

      public static final EntityCategoryType SERVICE_CONTRACT
      Declares a service contract entity category.
    • GENERAL

      public static final EntityCategoryType GENERAL
      Declares a general entity category.
  • Method Details

    • values

      public static EntityCategoryType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static EntityCategoryType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getType

      public static EntityCategoryType getType(String uri)
      Given an entity category URI, the method returns the type of entity category.
      Parameters:
      uri - entity category URI
      Returns:
      the entity category type, or null if no match is found
    • isType

      public static boolean isType(String uri, EntityCategoryType type)
      Predicate that tells if the supplied entity category URI is of the supplied entity category type.
      Parameters:
      uri - entity category URI
      type - the entity category type to test for
      Returns:
      if the supplied URI is of the given type true is returned, otherwise false