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