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
Implementation of the
ServiceEntityCategory
interface.- Author:
- Martin Lindström (martin@idsec.se)
- See Also:
-
Field Summary
Fields inherited from class se.swedenconnect.opensaml.sweid.saml2.metadata.entitycategory.EntityCategoryImpl
type, uri
-
Constructor Summary
ConstructorDescriptionDefault constructor.ServiceEntityCategoryImpl
(String uri, List<String> loaUris, AttributeSet attributeSet) Constructor assigning the URI, Level of Assurance URI:s and the attribute set. -
Method Summary
Modifier and TypeMethodDescriptionReturns the attribute set tied to this service entity category.Returns the Level of Assurance URI:s associated with this service entity category.getType()
Returns the type of entity category.getUri()
Each entity category is assigned an unique URI.void
setAttributeProfile
(AttributeSet attributeSet) Assigns the attribute set tied to this service entity category.void
setLevelOfAssuranceUris
(List<String> loaUris) Sets the Level of Assurance URI:s associated with this service entity category.Methods inherited from class se.swedenconnect.opensaml.sweid.saml2.metadata.entitycategory.EntityCategoryImpl
setType, setUri
-
Constructor Details
-
ServiceEntityCategoryImpl
public ServiceEntityCategoryImpl()Default constructor. -
ServiceEntityCategoryImpl
Constructor assigning the URI, Level of Assurance URI:s and the attribute set.- Parameters:
uri
- the unique URIloaUris
- the Level of Assurance URI:sattributeSet
- the attribute set
-
-
Method Details
-
getUri
Each entity category is assigned an unique URI. This method returns this value.- Specified by:
getUri
in interfaceEntityCategory
- Overrides:
getUri
in classEntityCategoryImpl
- Returns:
- the entity category URI
-
getType
Returns the type of entity category.- Specified by:
getType
in interfaceEntityCategory
- Overrides:
getType
in classEntityCategoryImpl
- Returns:
- the type of entity category
-
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 interfaceServiceEntityCategory
- Returns:
- the URI:s representing the Level of Assurance, or null if no level of assurance is associated with the category
-
setLevelOfAssuranceUris
Sets the Level of Assurance URI:s associated with this service entity category.- Parameters:
loaUris
- the LoA URI:s
-
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 interfaceServiceEntityCategory
- Returns:
- the attribute set
-
setAttributeProfile
Assigns the attribute set tied to this service entity category.- Parameters:
attributeSet
- the attribute set to assign
-