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