1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 package org.opensaml.ws.wssecurity.impl;
19
20 import org.opensaml.ws.wssecurity.BinarySecurityToken;
21 import org.opensaml.xml.XMLObject;
22 import org.opensaml.xml.io.UnmarshallingException;
23 import org.w3c.dom.Attr;
24
25
26
27
28 public class BinarySecurityTokenUnmarshaller extends EncodedStringUnmarshaller {
29
30
31 protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException {
32 BinarySecurityToken token = (BinarySecurityToken) xmlObject;
33 if (BinarySecurityToken.VALUE_TYPE_ATTRIB_NAME.equals(attribute.getLocalName())) {
34 token.setValueType(attribute.getValue());
35 } else {
36 super.processAttribute(xmlObject, attribute);
37 }
38 }
39
40 }