Package net.shibboleth.metadata.dom.saml
Class SAMLSupport
java.lang.Object
net.shibboleth.metadata.dom.saml.SAMLSupport
Helper class for dealing with SAML documents.
- Since:
- 0.9.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final QNamesaml:Attribute element.static final QNamesaml:AttributeValue element.static final StringUnspecified defaultNameFormatvalue forAttributeelements.static final ElementMakerMaker for theExtensionselement, for use with theContainersystem.static final ElementMatcherMatcher for theExtensionselement, for use with theContainersystem.static final StringNamespace URI for SAML elements.static final StringConventional prefix for SAML elements. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static ElementancestorEntity(Element element) Returns theElementrepresenting the EntityDescriptor which is the closest-containing ancestor of the given element.static StringerrorPrefix(Element element) Computes an entity-specific prefix to be put in front of a message.static StringextractAttributeNameFormat(Element attribute) Extract anAttributeelement'sNameFormat, applying the SAML standard's specified default if the XML attribute is not present.
-
Field Details
-
SAML_NS
Namespace URI for SAML elements.- See Also:
-
SAML_PREFIX
Conventional prefix for SAML elements.- See Also:
-
ATTRIBUTE_NAME
saml:Attribute element. -
ATTRNAME_FORMAT_UNSPECIFIED
Unspecified defaultNameFormatvalue forAttributeelements.- See Also:
-
ATTRIBUTE_VALUE_NAME
saml:AttributeValue element. -
EXTENSIONS_MATCHER
Matcher for theExtensionselement, for use with theContainersystem.- Since:
- 0.10.0
-
EXTENSIONS_MAKER
Maker for theExtensionselement, for use with theContainersystem.- Since:
- 0.10.0
-
-
Constructor Details
-
SAMLSupport
private SAMLSupport()Constructor.
-
-
Method Details
-
ancestorEntity
Returns theElementrepresenting the EntityDescriptor which is the closest-containing ancestor of the given element. -
errorPrefix
Computes an entity-specific prefix to be put in front of a message.- Parameters:
element-Elementforming the context for the prefix- Returns:
- a prefix for the error message
-
extractAttributeNameFormat
Extract anAttributeelement'sNameFormat, applying the SAML standard's specified default if the XML attribute is not present.- Parameters:
attribute-AttributeElement- Returns:
NameFormatvalue, or the "unspecified" default
-