Class EntityCategoryImpl
java.lang.Object
se.swedenconnect.opensaml.sweid.saml2.metadata.entitycategory.EntityCategoryImpl
- All Implemented Interfaces:
Serializable
,EntityCategory
- Direct Known Subclasses:
ServiceEntityCategoryImpl
Implementation of the
EntityCategory
interface.- Author:
- Martin Lindström (martin@idsec.se)
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected EntityCategoryType
The type of entity category.protected String
The unique URI for this category. -
Constructor Summary
ConstructorDescriptionDefault constructor.EntityCategoryImpl
(String uri, EntityCategoryType type) Constructor assigning the unique URI and the category type. -
Method Summary
Modifier and TypeMethodDescriptiongetType()
Returns the type of entity category.getUri()
Each entity category is assigned an unique URI.void
setType
(EntityCategoryType type) Assigns the type of entity category.void
Each entity category is assigned an unique URI.
-
Field Details
-
uri
The unique URI for this category. -
type
The type of entity category.
-
-
Constructor Details
-
EntityCategoryImpl
public EntityCategoryImpl()Default constructor. -
EntityCategoryImpl
Constructor assigning the unique URI and the category type.- Parameters:
uri
- the URItype
- the type
-
-
Method Details
-
getUri
Each entity category is assigned an unique URI. This method returns this value.- Specified by:
getUri
in interfaceEntityCategory
- Returns:
- the entity category URI
-
setUri
Each entity category is assigned an unique URI. This method assigns this value.- Parameters:
uri
- the URI to assign.
-
getType
Returns the type of entity category.- Specified by:
getType
in interfaceEntityCategory
- Returns:
- the type of entity category
-
setType
Assigns the type of entity category.- Parameters:
type
- the type to assign.
-