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
Represents the different Entity Category types defined within the Swedish eiD Framework.
- Author:
- Martin Lindström (martin@idsec.se)
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionDeclares a general entity category.Declares a service contract entity category.Meaning for a consuming service: Each declared category represents an alternative set of requirements for the service.Meaning for a consuming service: Represents a property of this service.Declares the type of service provided by a consuming service. -
Method Summary
Modifier and TypeMethodDescriptionstatic EntityCategoryType
Given an entity category URI, the method returns the type of entity category.static boolean
isType
(String uri, EntityCategoryType type) Predicate that tells if the supplied entity category URI is of the supplied entity category type.static EntityCategoryType
Returns the enum constant of this class with the specified name.static EntityCategoryType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
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
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
Declares the type of service provided by a consuming service. -
SERVICE_CONTRACT
Declares a service contract entity category. -
GENERAL
Declares a general entity category.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
getType
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
Predicate that tells if the supplied entity category URI is of the supplied entity category type.- Parameters:
uri
- entity category URItype
- the entity category type to test for- Returns:
- if the supplied URI is of the given type true is returned, otherwise false
-