1 | <?php |
||
23 | class StateHandler |
||
24 | { |
||
25 | const SESSION_PATH = 'surfnet/gateway/adfs'; |
||
26 | |||
27 | /** |
||
28 | * @var \Symfony\Component\HttpFoundation\Session\SessionInterface |
||
29 | */ |
||
30 | private $session; |
||
31 | |||
32 | /** |
||
33 | * @param SessionInterface $session |
||
34 | */ |
||
35 | public function __construct(SessionInterface $session) |
||
39 | |||
40 | /** |
||
41 | * @param string $originalRequestId |
||
42 | * @return $this |
||
43 | */ |
||
44 | public function setRequestId($originalRequestId) |
||
50 | |||
51 | /** |
||
52 | * @param string $authMethod |
||
53 | * @return $this |
||
54 | */ |
||
55 | public function setAuthMethod($authMethod) |
||
61 | |||
62 | /** |
||
63 | * @param string $context |
||
64 | * @return $this |
||
65 | */ |
||
66 | public function setContext($context) |
||
72 | |||
73 | /** |
||
74 | * @param string $acsUrl |
||
75 | * @return $this |
||
76 | */ |
||
77 | public function setAssertionConsumerServiceUrl($acsUrl) |
||
83 | |||
84 | /** |
||
85 | * @return mixed|null |
||
86 | */ |
||
87 | public function getRequestId() |
||
91 | |||
92 | /** |
||
93 | * @return mixed|null |
||
94 | */ |
||
95 | public function getAuthMethod() |
||
99 | |||
100 | /** |
||
101 | * @return mixed|null |
||
102 | */ |
||
103 | public function getContext() |
||
107 | |||
108 | /** |
||
109 | * @return mixed|null |
||
110 | */ |
||
111 | public function getAssertionConsumerServiceUrl() |
||
115 | |||
116 | /** |
||
117 | * @param string $requestId |
||
118 | * @return bool |
||
119 | */ |
||
120 | public function hasMatchingRequestId($requestId) |
||
129 | |||
130 | /** |
||
131 | * @param string $key |
||
132 | * @param mixed $value Any scalar |
||
133 | */ |
||
134 | protected function set($key, $value) |
||
138 | |||
139 | /** |
||
140 | * @param string $key |
||
141 | * @return mixed|null Any scalar |
||
142 | */ |
||
143 | protected function get($key) |
||
147 | } |
||
148 |