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.Collections;
21 import java.util.List;
22
23 import javax.xml.namespace.QName;
24
25 import org.opensaml.ws.wstrust.KeyExchangeToken;
26 import org.opensaml.xml.XMLObject;
27 import org.opensaml.xml.util.IndexedXMLObjectChildrenList;
28
29
30
31
32
33 public class KeyExchangeTokenImpl extends AbstractWSTrustObject implements KeyExchangeToken {
34
35
36 private IndexedXMLObjectChildrenList<XMLObject> unknownChildren;
37
38
39
40
41
42
43
44
45 public KeyExchangeTokenImpl(String namespaceURI, String elementLocalName, String namespacePrefix) {
46 super(namespaceURI, elementLocalName, namespacePrefix);
47 unknownChildren = new IndexedXMLObjectChildrenList<XMLObject>(this);
48 }
49
50
51 public List<XMLObject> getUnknownXMLObjects() {
52 return unknownChildren;
53 }
54
55
56 public List<XMLObject> getUnknownXMLObjects(QName typeOrName) {
57 return (List<XMLObject>) unknownChildren.subList(typeOrName);
58 }
59
60
61 public List<XMLObject> getOrderedChildren() {
62 return Collections.unmodifiableList(unknownChildren);
63 }
64
65 }