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 java.util.ArrayList;
20 import java.util.Collections;
21 import java.util.List;
22
23 import org.opensaml.saml1.core.AuthenticationQuery;
24 import org.opensaml.xml.XMLObject;
25
26
27
28
29 public class AuthenticationQueryImpl extends SubjectQueryImpl implements AuthenticationQuery {
30
31
32 private String authenticationMethod;
33
34
35
36
37
38
39
40
41 protected AuthenticationQueryImpl(String namespaceURI, String elementLocalName, String namespacePrefix) {
42 super(namespaceURI, elementLocalName, namespacePrefix);
43 }
44
45
46 public String getAuthenticationMethod() {
47 return authenticationMethod;
48 }
49
50
51 public void setAuthenticationMethod(String authenticationMethod) {
52 this.authenticationMethod = prepareForAssignment(this.authenticationMethod, authenticationMethod);
53 }
54
55
56 public List<XMLObject> getOrderedChildren() {
57 List<XMLObject> list = new ArrayList<XMLObject>();
58
59 if (super.getOrderedChildren() != null) {
60 list.addAll(super.getOrderedChildren());
61 }
62
63 if (list.size() == 0) {
64 return null;
65 }
66
67 return Collections.unmodifiableList(list);
68 }
69 }