1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 package org.opensaml.ws.wssecurity.impl;
19
20 import org.opensaml.ws.wssecurity.Security;
21 import org.opensaml.xml.XMLObject;
22 import org.opensaml.xml.io.UnmarshallingException;
23 import org.opensaml.xml.util.XMLHelper;
24 import org.w3c.dom.Attr;
25
26
27
28
29
30 public class SecurityUnmarshaller extends AbstractWSSecurityObjectUnmarshaller {
31
32
33 protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException {
34 Security security = (Security) xmlObject;
35 XMLHelper.unmarshallToAttributeMap(security.getUnknownAttributes(), attribute);
36 }
37
38
39 protected void processChildElement(XMLObject parentXMLObject, XMLObject childXMLObject)
40 throws UnmarshallingException {
41 Security security = (Security) parentXMLObject;
42 security.getUnknownXMLObjects().add(childXMLObject);
43 }
44
45 }