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 import org.opensaml.ws.wstrust.RequestSecurityToken;
20 import org.opensaml.ws.wstrust.RequestSecurityTokenCollection;
21 import org.opensaml.xml.XMLObject;
22 import org.opensaml.xml.io.UnmarshallingException;
23
24
25
26
27
28
29 public class RequestSecurityTokenCollectionUnmarshaller extends AbstractWSTrustObjectUnmarshaller {
30
31
32 protected void processChildElement(XMLObject parentXMLObject, XMLObject childXMLObject)
33 throws UnmarshallingException {
34 RequestSecurityTokenCollection rstc = (RequestSecurityTokenCollection) parentXMLObject;
35 if (childXMLObject instanceof RequestSecurityToken) {
36 rstc.getRequestSecurityTokens().add((RequestSecurityToken) childXMLObject);
37 } else {
38 super.processChildElement(parentXMLObject, childXMLObject);
39 }
40 }
41
42
43 }