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
FieldsModifier and TypeFieldDescriptionprotected EntityCategoryTypeThe type of entity category.protected StringThe unique URI for this category. -
Constructor Summary
ConstructorsConstructorDescriptionDefault 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.voidsetType(EntityCategoryType type) Assigns the type of entity category.voidEach 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:
getUriin 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:
getTypein interfaceEntityCategory- Returns:
- the type of entity category
-
setType
Assigns the type of entity category.- Parameters:
type- the type to assign.
-