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.MarshallingException;
22 import org.w3c.dom.Element;
23
24
25
26
27 public class AuthenticationQueryMarshaller extends SubjectQueryMarshaller {
28
29
30 protected void marshallAttributes(XMLObject samlObject, Element domElement) throws MarshallingException {
31 AuthenticationQuery authenticationQuery = (AuthenticationQuery) samlObject;
32
33 if (authenticationQuery.getAuthenticationMethod() != null) {
34 domElement.setAttributeNS(null, AuthenticationQuery.AUTHENTICATIONMETHOD_ATTRIB_NAME, authenticationQuery
35 .getAuthenticationMethod());
36 }
37 }
38
39 }