Class AttributeTemplate
java.lang.Object
se.swedenconnect.opensaml.saml2.attribute.AttributeTemplate
- All Implemented Interfaces:
Serializable
An attribute template is a template of a SAML attribute, i.e., it represents the name, friendly name and name format
but not the value of the attribute.
A template may be useful when defining attribute sets and/or attribute release policies.
- Author:
- Martin Lindström (martin@idsec.se)
- See Also:
-
Constructor Summary
ConstructorDescriptionAttributeTemplate
(String name, String friendlyName) Creates an attribute template with the given name and friendly name, the default name formaturn:oasis:names:tc:SAML:2.0:attrname-format:uri
(Attribute.URI_REFERENCE
) and not multi-valued.AttributeTemplate
(String name, String friendlyName, String nameFormat) Creates an attribute template with the given name, friendly name and name format. -
Method Summary
Modifier and TypeMethodDescriptionBased on the attribute template anAttributeBuilder
object is created.Get the friendly name of this attribute template.getName()
Get the name of this attribute template.Get the name format of this attribute template.
-
Constructor Details
-
AttributeTemplate
Creates an attribute template with the given name and friendly name, the default name formaturn:oasis:names:tc:SAML:2.0:attrname-format:uri
(Attribute.URI_REFERENCE
) and not multi-valued.- Parameters:
name
- the attribute namefriendlyName
- the attribute friendly name (optional)
-
AttributeTemplate
Creates an attribute template with the given name, friendly name and name format.- Parameters:
name
- the attribute namefriendlyName
- the attribute friendly namenameFormat
- the name format
-
-
Method Details
-
getName
Get the name of this attribute template.- Returns:
- the name of this attribute template
-
getFriendlyName
Get the friendly name of this attribute template.- Returns:
- the friendly name of this attribute template
-
getNameFormat
Get the name format of this attribute template.- Returns:
- the name format of this attribute template
-
createBuilder
Based on the attribute template anAttributeBuilder
object is created.- Returns:
- a builder
-