1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.opensaml.saml1.core.impl;
18
19 import org.opensaml.saml1.core.AuthenticationQuery;
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 AuthenticationQueryUnmarshaller extends SubjectQueryUnmarshaller {
28
29
30 protected void processAttribute(XMLObject samlObject, Attr attribute) throws UnmarshallingException {
31 AuthenticationQuery authenticationQuery = (AuthenticationQuery) samlObject;
32
33 if (AuthenticationQuery.AUTHENTICATIONMETHOD_ATTRIB_NAME.equals(attribute.getLocalName())) {
34 authenticationQuery.setAuthenticationMethod(attribute.getValue());
35 } else {
36 super.processAttribute(samlObject, attribute);
37 }
38 }
39 }