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 StringAttributeMapping element namestatic final StringRef attribute namestatic final StringType 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 voidsetValuesFromElement(Element element) Creates an instance of this elements data from a DOM elementprotected voidvalidate()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:
validatein classAbstractDomData- Throws:
CertificateException- validation errors
-
getElement
Gets a DOM element from the element data fields- Specified by:
getElementin 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:
setValuesFromElementin classAbstractDomData- Parameters:
element- xml element providing content data- Throws:
CertificateException- content validation error
-