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.AuthorizationDecisionQuery;
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 AuthorizationDecisionQueryMarshaller extends SubjectQueryMarshaller {
28
29
30 protected void marshallAttributes(XMLObject samlElement, Element domElement) throws MarshallingException {
31 AuthorizationDecisionQuery authorizationDecisionQuery = (AuthorizationDecisionQuery) samlElement;
32
33 if (authorizationDecisionQuery.getResource() != null) {
34 domElement.setAttributeNS(null, AuthorizationDecisionQuery.RESOURCE_ATTRIB_NAME, authorizationDecisionQuery
35 .getResource());
36 }
37 }
38 }