Class AttributeMapping
java.lang.Object
se.swedenconnect.cert.extensions.data.saci.AbstractDomData
se.swedenconnect.cert.extensions.data.saci.AttributeMapping
Attribute mapping element
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
AttributeMapping element namestatic final String
Ref attribute namestatic final String
Type attribute nameFields inherited from class se.swedenconnect.cert.extensions.data.saci.AbstractDomData
SACI_NS, SAML_ASSERTION_NS, strictMode, XML_DATE_TIME_FORMATTER
-
Constructor Summary
ConstructorsConstructorDescriptionAttributeMapping
(Element element, boolean strictMode) Constructing attribute mapping from xml element -
Method Summary
Modifier and TypeMethodDescriptionGet the list of additional elements.getElement
(Document document) Gets a DOM element from the element data fieldsprotected void
setValuesFromElement
(Element element) Creates an instance of this elements data from a DOM elementprotected void
validate()
Validates the data fields of this object to assert that it meets basic content requirementsMethods inherited from class se.swedenconnect.cert.extensions.data.saci.AbstractDomData
adoptAttributes, adoptElements, getAttributeValue, getAttributeValue, getElements, getOtherAttributes, getSingleElement, instantToString, parseTime, setAttribute, setAttribute
-
Field Details
-
ATTRIBUTE_MAPPING_ELEMENT
AttributeMapping element name- See Also:
-
TYPE
Type attribute name- See Also:
-
REF
Ref attribute name- See Also:
-
-
Constructor Details
-
AttributeMapping
Constructing attribute mapping from xml element- Parameters:
element
- xml element holding the attribute mapping datastrictMode
- true to strictly enforce content requirement rules- Throws:
CertificateException
- content validation error
-
-
Method Details
-
getAnyList
Get the list of additional elements. If this list is absent, a new list will be created- Returns:
- the list of additional elements
-
validate
Validates the data fields of this object to assert that it meets basic content requirements- Specified by:
validate
in classAbstractDomData
- Throws:
CertificateException
- validation errors
-
getElement
Gets a DOM element from the element data fields- Specified by:
getElement
in classAbstractDomData
- Parameters:
document
- the document this element shall belong to- Returns:
- DOM element populated with the field data of this object
-
setValuesFromElement
Creates an instance of this elements data from a DOM element- Specified by:
setValuesFromElement
in classAbstractDomData
- Parameters:
element
- xml element providing content data- Throws:
CertificateException
- content validation error
-