1 | <?php |
||
31 | class ResponseContext |
||
32 | { |
||
33 | /** |
||
34 | * @var IdentityProvider |
||
35 | */ |
||
36 | private $hostedIdentityProvider; |
||
37 | |||
38 | /** |
||
39 | * @var \Surfnet\StepupGateway\GatewayBundle\Service\SamlEntityService |
||
40 | */ |
||
41 | private $samlEntityService; |
||
42 | |||
43 | /** |
||
44 | * @var ProxyStateHandler |
||
45 | */ |
||
46 | private $stateHandler; |
||
47 | |||
48 | /** |
||
49 | * @var DateTime |
||
50 | */ |
||
51 | private $generationTime; |
||
52 | |||
53 | /** |
||
54 | * @var IdentityProvider|null |
||
55 | */ |
||
56 | private $authenticatingIdp; |
||
57 | |||
58 | /** |
||
59 | * @var ServiceProvider |
||
60 | */ |
||
61 | private $targetServiceProvider; |
||
62 | |||
63 | public function __construct( |
||
73 | |||
74 | /** |
||
75 | * @return string |
||
76 | */ |
||
77 | public function getDestination() |
||
87 | |||
88 | /** |
||
89 | * @return null|string |
||
90 | */ |
||
91 | public function getIssuer() |
||
95 | |||
96 | /** |
||
97 | * @return int |
||
98 | */ |
||
99 | public function getIssueInstant() |
||
103 | |||
104 | /** |
||
105 | * @return null|string |
||
106 | */ |
||
107 | public function getInResponseTo() |
||
111 | |||
112 | /** |
||
113 | * @return null|string |
||
114 | */ |
||
115 | public function getExpectedInResponseTo() |
||
119 | |||
120 | /** |
||
121 | * @return null|string |
||
122 | */ |
||
123 | public function getRequiredLoa() |
||
127 | |||
128 | /** |
||
129 | * @return IdentityProvider |
||
130 | */ |
||
131 | public function getIdentityProvider() |
||
135 | |||
136 | /** |
||
137 | * @return null|ServiceProvider |
||
138 | */ |
||
139 | public function getServiceProvider() |
||
149 | |||
150 | /** |
||
151 | * @return null|string |
||
152 | */ |
||
153 | public function getRelayState() |
||
157 | |||
158 | /** |
||
159 | * @param SAML2_Assertion $assertion |
||
160 | */ |
||
161 | public function saveAssertion(SAML2_Assertion $assertion) |
||
184 | |||
185 | /** |
||
186 | * @return SAML2_Assertion |
||
187 | */ |
||
188 | public function reconstituteAssertion() |
||
196 | |||
197 | /** |
||
198 | * @return null|string |
||
199 | */ |
||
200 | public function getIdentityNameId() |
||
204 | |||
205 | public function getSchacHomeOrganization() |
||
209 | |||
210 | /** |
||
211 | * @return null|IdentityProvider |
||
212 | */ |
||
213 | public function getAuthenticatingIdp() |
||
231 | |||
232 | /** |
||
233 | * @param SecondFactor $secondFactor |
||
234 | */ |
||
235 | public function saveSelectedSecondFactor(SecondFactor $secondFactor) |
||
241 | |||
242 | /** |
||
243 | * @return null|string |
||
244 | */ |
||
245 | public function getSelectedSecondFactor() |
||
249 | |||
250 | public function markSecondFactorVerified() |
||
254 | |||
255 | /** |
||
256 | * @return bool |
||
257 | */ |
||
258 | public function isSecondFactorVerified() |
||
262 | |||
263 | public function getResponseAction() |
||
267 | |||
268 | /** |
||
269 | * Resets some state after the response is sent |
||
270 | * (e.g. resets which second factor was selected and whether it was verified). |
||
271 | */ |
||
272 | public function responseSent() |
||
277 | } |
||
278 |