1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 package org.opensaml.saml2.core.impl;
22
23 import org.opensaml.common.impl.AbstractSAMLObjectUnmarshaller;
24 import org.opensaml.saml2.core.BaseID;
25 import org.opensaml.xml.XMLObject;
26 import org.opensaml.xml.io.UnmarshallingException;
27 import org.w3c.dom.Attr;
28
29
30
31
32 public abstract class BaseIDUnmarshaller extends AbstractSAMLObjectUnmarshaller {
33
34
35 protected void processAttribute(XMLObject samlObject, Attr attribute) throws UnmarshallingException {
36 BaseID baseID = (BaseID) samlObject;
37 if (attribute.getLocalName().equals(BaseID.NAME_QUALIFIER_ATTRIB_NAME)) {
38 baseID.setNameQualifier(attribute.getValue());
39 } else if (attribute.getLocalName().equals(BaseID.SP_NAME_QUALIFIER_ATTRIB_NAME)) {
40 baseID.setSPNameQualifier(attribute.getValue());
41 } else {
42 super.processAttribute(samlObject, attribute);
43 }
44 }
45 }