1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 package org.opensaml.ws.wstrust.impl;
19
20 import java.util.ArrayList;
21 import java.util.Collections;
22 import java.util.List;
23
24 import org.opensaml.ws.wstrust.UseKey;
25 import org.opensaml.xml.XMLObject;
26
27
28
29
30
31 public class UseKeyImpl extends AbstractWSTrustObject implements UseKey {
32
33
34 private XMLObject unknownChild;
35
36
37 private String sig;
38
39
40
41
42
43
44
45
46 public UseKeyImpl(String namespaceURI, String elementLocalName, String namespacePrefix) {
47 super(namespaceURI, elementLocalName, namespacePrefix);
48 }
49
50
51 public String getSig() {
52 return sig;
53 }
54
55
56 public void setSig(String newSig) {
57 sig = prepareForAssignment(sig, newSig);
58 }
59
60
61 public XMLObject getUnknownXMLObject() {
62 return unknownChild;
63 }
64
65
66 public void setUnknownXMLObject(XMLObject unknownObject) {
67 unknownChild = prepareForAssignment(unknownChild, unknownObject);
68 }
69
70
71 public List<XMLObject> getOrderedChildren() {
72 ArrayList<XMLObject> children = new ArrayList<XMLObject>();
73 if (unknownChild != null) {
74 children.add(unknownChild);
75 }
76 return Collections.unmodifiableList(children);
77 }
78
79 }