1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package edu.internet2.middleware.shibboleth.common.profile.provider;
18
19 import java.util.Collection;
20 import java.util.Map;
21
22 import org.opensaml.common.SAMLObject;
23 import org.opensaml.common.binding.BasicSAMLMessageContext;
24 import org.opensaml.common.binding.decoding.SAMLMessageDecoder;
25 import org.opensaml.common.binding.encoding.SAMLMessageEncoder;
26
27 import edu.internet2.middleware.shibboleth.common.attribute.BaseAttribute;
28 import edu.internet2.middleware.shibboleth.common.relyingparty.ProfileConfiguration;
29 import edu.internet2.middleware.shibboleth.common.relyingparty.RelyingPartyConfiguration;
30 import edu.internet2.middleware.shibboleth.common.session.Session;
31
32
33
34
35
36
37
38
39
40 public class BaseSAMLProfileRequestContext<InboundMessage extends SAMLObject, OutboundMessage extends SAMLObject, NameIdentifierType extends SAMLObject, ProfileConfigurationType extends ProfileConfiguration>
41 extends BasicSAMLMessageContext<InboundMessage, OutboundMessage, NameIdentifierType> implements
42 SAMLProfileRequestContext<InboundMessage, OutboundMessage, NameIdentifierType, ProfileConfigurationType> {
43
44
45 private SAMLMessageDecoder messageDecoder;
46
47
48 private SAMLMessageEncoder messageEncoder;
49
50
51 private Map<String, BaseAttribute> principalAttributes;
52
53
54 private String principalAuthenticationMethod;
55
56
57 private String principalName;
58
59
60 private BaseAttribute nameIdentifierAttribute;
61
62
63 private ProfileConfigurationType profileConfiguration;
64
65
66 private Collection<String> releasedAttributeIds;
67
68
69 private RelyingPartyConfiguration relyingPartyConfiguration;
70
71
72 private Collection<String> requestedAttributeIds;
73
74
75 private Session userSession;
76
77
78 public Map<String, BaseAttribute> getAttributes() {
79 return principalAttributes;
80 }
81
82
83
84
85
86
87 public SAMLMessageDecoder getMessageDecoder() {
88 return messageDecoder;
89 }
90
91
92
93
94
95
96 public SAMLMessageEncoder getMessageEncoder() {
97 return messageEncoder;
98 }
99
100
101
102
103
104
105 public BaseAttribute getNameIdentifierAttribute() {
106 return nameIdentifierAttribute;
107 }
108
109
110 public String getPrincipalAuthenticationMethod() {
111 return principalAuthenticationMethod;
112 }
113
114
115 public String getPrincipalName() {
116 return principalName;
117 }
118
119
120
121
122
123
124 public ProfileConfigurationType getProfileConfiguration() {
125 return profileConfiguration;
126 }
127
128
129 public Collection<String> getReleasedAttributes() {
130 return releasedAttributeIds;
131 }
132
133
134 public RelyingPartyConfiguration getRelyingPartyConfiguration() {
135 return relyingPartyConfiguration;
136 }
137
138
139 public Collection<String> getRequestedAttributesIds() {
140 return requestedAttributeIds;
141 }
142
143
144 public Session getUserSession() {
145 return userSession;
146 }
147
148
149 public void setAttributes(Map<String, BaseAttribute> attributes) {
150 principalAttributes = attributes;
151 }
152
153
154
155
156
157
158 public void setMessageDecoder(SAMLMessageDecoder decoder) {
159 messageDecoder = decoder;
160 }
161
162
163
164
165
166
167 public void setMessageEncoder(SAMLMessageEncoder encoder) {
168 messageEncoder = encoder;
169 }
170
171
172
173
174
175
176 public void setNameIdentifierAttribute(BaseAttribute attribute) {
177 nameIdentifierAttribute = attribute;
178 }
179
180
181 public void setPrincipalAuthenticationMethod(String method) {
182 principalAuthenticationMethod = method;
183 }
184
185
186 public void setPrincipalName(String name) {
187 principalName = name;
188 }
189
190
191 public void setProfileConfiguration(ProfileConfigurationType configuration) {
192 profileConfiguration = configuration;
193 }
194
195
196 public void setReleasedAttributes(Collection<String> attributeIds) {
197 releasedAttributeIds = attributeIds;
198 }
199
200
201 public void setRelyingPartyConfiguration(RelyingPartyConfiguration configuration) {
202 relyingPartyConfiguration = configuration;
203 }
204
205
206 public void setRequestedAttributes(Collection<String> ids) {
207 requestedAttributeIds = ids;
208 }
209
210
211 public void setUserSession(Session session) {
212 userSession = session;
213 }
214 }