1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.opensaml.ws.wstrust.impl;
18
19
20 import org.opensaml.ws.wstrust.UseKey;
21 import org.opensaml.xml.XMLObject;
22 import org.opensaml.xml.io.UnmarshallingException;
23 import org.w3c.dom.Attr;
24
25
26
27
28
29 public class UseKeyUnmarshaller extends AbstractWSTrustObjectUnmarshaller {
30
31
32 protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException {
33 UseKey uk = (UseKey) xmlObject;
34
35 if (UseKey.SIG_ATTRIB_NAME.equals(attribute.getLocalName())) {
36 uk.setSig(attribute.getValue());
37 } else {
38 super.processAttribute(xmlObject, attribute);
39 }
40 }
41
42
43 protected void processChildElement(XMLObject parentXMLObject, XMLObject childXMLObject)
44 throws UnmarshallingException {
45 UseKey uk = (UseKey) parentXMLObject;
46 uk.setUnknownXMLObject(childXMLObject);
47 }
48 }