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 | * @return mixed|null |
||
75 | */ |
||
76 | public function getRequestId() |
||
80 | |||
81 | /** |
||
82 | * @return mixed|null |
||
83 | */ |
||
84 | public function getAuthMethod() |
||
88 | |||
89 | /** |
||
90 | * @return mixed|null |
||
91 | */ |
||
92 | public function getContext() |
||
96 | |||
97 | /** |
||
98 | * @param string $requestId |
||
99 | * @return bool |
||
100 | */ |
||
101 | public function hasMatchingRequestId($requestId) |
||
110 | |||
111 | /** |
||
112 | * @param string $key |
||
113 | * @param mixed $value Any scalar |
||
114 | */ |
||
115 | protected function set($key, $value) |
||
119 | |||
120 | /** |
||
121 | * @param string $key |
||
122 | * @return mixed|null Any scalar |
||
123 | */ |
||
124 | protected function get($key) |
||
128 | } |
||
129 |