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