1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 package org.opensaml.saml2.core.impl;
22
23 import java.util.List;
24
25 import org.opensaml.common.impl.AbstractSAMLObject;
26 import org.opensaml.saml2.core.NameIDPolicy;
27 import org.opensaml.xml.XMLObject;
28 import org.opensaml.xml.schema.XSBooleanValue;
29
30
31
32
33 public class NameIDPolicyImpl extends AbstractSAMLObject implements NameIDPolicy {
34
35
36 private String format;
37
38
39 private String spNameQualifier;
40
41
42 private XSBooleanValue allowCreate;
43
44
45
46
47
48
49
50
51 protected NameIDPolicyImpl(String namespaceURI, String elementLocalName, String namespacePrefix) {
52 super(namespaceURI, elementLocalName, namespacePrefix);
53 }
54
55
56 public String getFormat() {
57 return format;
58 }
59
60
61 public void setFormat(String newFormat) {
62 format = prepareForAssignment(format, newFormat);
63
64 }
65
66
67 public String getSPNameQualifier() {
68 return spNameQualifier;
69 }
70
71
72 public void setSPNameQualifier(String newSPNameQualifier) {
73 spNameQualifier = prepareForAssignment(spNameQualifier, newSPNameQualifier);
74
75 }
76
77
78 public Boolean getAllowCreate(){
79 if(allowCreate != null){
80 return allowCreate.getValue();
81 }
82
83 return Boolean.FALSE;
84 }
85
86
87 public XSBooleanValue getAllowCreateXSBoolean() {
88 return allowCreate;
89 }
90
91
92 public void setAllowCreate(Boolean newAllowCreate){
93 if(newAllowCreate != null){
94 allowCreate = prepareForAssignment(allowCreate, new XSBooleanValue(newAllowCreate, false));
95 }else{
96 allowCreate = prepareForAssignment(allowCreate, null);
97 }
98 }
99
100
101 public void setAllowCreate(XSBooleanValue newAllowCreate) {
102 allowCreate = prepareForAssignment(allowCreate, newAllowCreate);
103
104 }
105
106
107 public List<XMLObject> getOrderedChildren() {
108
109 return null;
110 }
111 }