1 | <?php |
||
18 | class LogoutSendRequest implements RelyingPartyInterface |
||
19 | { |
||
20 | /** @var \Symfony\Component\Security\Core\SecurityContextInterface */ |
||
21 | protected $securityContext; |
||
22 | |||
23 | /** @var ServiceInfoCollection */ |
||
24 | protected $serviceInfoCollection; |
||
25 | |||
26 | /** @var RequestStateStoreInterface */ |
||
27 | protected $requestStateStore; |
||
28 | |||
29 | |||
30 | |||
31 | /** |
||
32 | * @param SecurityContextInterface $securityContext |
||
33 | * @param ServiceInfoCollection $serviceInfoCollection |
||
34 | * @param \AerialShip\SamlSPBundle\State\Request\RequestStateStoreInterface $requestStateStore |
||
35 | */ |
||
36 | public function __construct( |
||
45 | |||
46 | |||
47 | |||
48 | /** |
||
49 | * @param \Symfony\Component\HttpFoundation\Request $request |
||
50 | * @return bool |
||
51 | */ |
||
52 | function supports(Request $request) |
||
67 | |||
68 | /** |
||
69 | * @param \Symfony\Component\HttpFoundation\Request $request |
||
70 | * @throws \RuntimeException if no signing provider set |
||
71 | * @throws \InvalidArgumentException if cannot manage the Request |
||
72 | * @return \Symfony\Component\HttpFoundation\Response|SamlSpInfo |
||
73 | */ |
||
74 | function manage(Request $request) |
||
97 | |||
98 | |||
99 | /** |
||
100 | * @return SamlSpInfo |
||
101 | */ |
||
102 | protected function getSamlInfo() |
||
109 | |||
110 | |||
111 | /** |
||
112 | * @param SamlSpInfo $samlInfo |
||
113 | * @param Request $request |
||
114 | * @return ServiceInfo |
||
115 | * @throws \RuntimeException |
||
116 | */ |
||
117 | protected function getServiceInfo(SamlSpInfo $samlInfo, Request $request) |
||
130 | |||
131 | /** |
||
132 | * @param ServiceInfo $serviceInfo |
||
133 | * @return LogoutRequestBuilder |
||
134 | */ |
||
135 | protected function createLogoutRequestBuilder(ServiceInfo $serviceInfo) |
||
145 | |||
146 | /** |
||
147 | * @param LogoutRequestBuilder $builder |
||
148 | * @param ServiceInfo $serviceInfo |
||
149 | * @param SamlSpInfo $samlInfo |
||
150 | * @return LogoutRequest |
||
151 | */ |
||
152 | protected function createLogoutRequest(LogoutRequestBuilder $builder, ServiceInfo $serviceInfo, SamlSpInfo $samlInfo) |
||
163 | |||
164 | /** |
||
165 | * @param LogoutRequest $request |
||
166 | * @param ServiceInfo $serviceInfo |
||
167 | * @return RequestState |
||
168 | */ |
||
169 | protected function createRequestState(LogoutRequest $request, ServiceInfo $serviceInfo) |
||
178 | } |
||
179 |
Adding explicit visibility (
private
,protected
, orpublic
) is generally recommend to communicate to other developers how, and from where this method is intended to be used.