1 | <?php |
||
25 | class SsoIdpSendResponseProfileBuilder extends AbstractProfileBuilder |
||
26 | { |
||
27 | /** @var ActionBuilderInterface[] */ |
||
28 | private $assertionBuilders = array(); |
||
29 | |||
30 | /** @var string */ |
||
31 | private $entityId; |
||
32 | |||
33 | /** @var EntityDescriptor */ |
||
34 | private $partyEntityDescriptor; |
||
35 | |||
36 | /** @var TrustOptions */ |
||
37 | private $partyTrustOptions; |
||
38 | |||
39 | /** @var Endpoint */ |
||
40 | private $endpoint; |
||
41 | |||
42 | /** @var SamlMessage */ |
||
43 | private $message; |
||
44 | |||
45 | /** @var string */ |
||
46 | private $relayState; |
||
47 | |||
48 | /** |
||
49 | * @param BuildContainerInterface $buildContainer |
||
50 | * @param ActionBuilderInterface[] $assertionBuilders |
||
51 | * @param string $entityId |
||
52 | */ |
||
53 | public function __construct(BuildContainerInterface $buildContainer, array $assertionBuilders, $entityId) |
||
62 | |||
63 | /** |
||
64 | * @param EntityDescriptor $entityDescriptor |
||
65 | * |
||
66 | * @return SsoIdpSendResponseProfileBuilder |
||
67 | */ |
||
68 | public function setPartyEntityDescriptor(EntityDescriptor $entityDescriptor) |
||
74 | |||
75 | /** |
||
76 | * @param TrustOptions $partyTrustOptions |
||
77 | * |
||
78 | * @return SsoIdpSendResponseProfileBuilder |
||
79 | */ |
||
80 | public function setPartyTrustOptions(TrustOptions $partyTrustOptions) |
||
86 | |||
87 | /** |
||
88 | * @param Endpoint $endpoint |
||
89 | * |
||
90 | * @return SsoIdpSendResponseProfileBuilder |
||
91 | */ |
||
92 | public function setEndpoint(Endpoint $endpoint) |
||
98 | |||
99 | /** |
||
100 | * @param SamlMessage $message |
||
101 | * |
||
102 | * @return SsoIdpSendResponseProfileBuilder |
||
103 | */ |
||
104 | public function setMessage($message) |
||
110 | |||
111 | /** |
||
112 | * @param string $relayState |
||
113 | * |
||
114 | * @return SsoIdpSendResponseProfileBuilder |
||
115 | */ |
||
116 | public function setRelayState($relayState) |
||
122 | |||
123 | /** |
||
124 | * @param ActionBuilderInterface $assertionBuilder |
||
125 | */ |
||
126 | private function addAssertionBuilder(ActionBuilderInterface $assertionBuilder) |
||
130 | |||
131 | /** |
||
132 | * @return string |
||
133 | */ |
||
134 | protected function getProfileId() |
||
138 | |||
139 | /** |
||
140 | * @return string |
||
141 | */ |
||
142 | protected function getProfileRole() |
||
146 | |||
147 | /** |
||
148 | * @return SsoIdpSendResponseActionBuilder |
||
149 | */ |
||
150 | protected function getActionBuilder() |
||
160 | |||
161 | /** |
||
162 | * @return ProfileContext |
||
163 | */ |
||
164 | public function buildContext() |
||
192 | } |
||
193 |