@@ -38,13 +38,6 @@ abstract class AbstractMessage extends AbstractSamlpElement implements SignableE
3838 use SignedElementTrait;
3939
4040
41- /**
42- * The RelayState associated with this message.
43- *
44- * @var string|null
45- */
46- protected ?string $ relayState = null ;
47-
4841 /**
4942 * The \DOMDocument we are currently building.
5043 *
@@ -77,7 +70,6 @@ abstract class AbstractMessage extends AbstractSamlpElement implements SignableE
7770 * @param string|null $destination
7871 * @param string|null $consent
7972 * @param \SimpleSAML\SAML2\XML\samlp\Extensions $extensions
80- * @param string|null $relayState
8173 *
8274 * @throws \Exception
8375 */
@@ -89,15 +81,13 @@ protected function __construct(
8981 protected ?string $ destination = null ,
9082 protected ?string $ consent = null ,
9183 ?Extensions $ extensions = null ,
92- ?string $ relayState = null ,
9384 ) {
9485 Assert::nullOrSame ($ issueInstant ?->getTimeZone()->getName (), 'Z ' , ProtocolViolationException::class);
9586 Assert::nullOrValidNCName ($ id ); // Covers the empty string
9687 Assert::nullOrValidURI ($ destination ); // Covers the empty string
9788 Assert::nullOrValidURI ($ consent ); // Covers the empty string
9889
9990 $ this ->setExtensions ($ extensions );
100- $ this ->setRelayState ($ relayState );
10191 }
10292
10393
@@ -188,30 +178,6 @@ public function isMessageConstructedWithSignature(): bool
188178 }
189179
190180
191- /**
192- * Retrieve the RelayState associated with this message.
193- *
194- * @return string|null The RelayState, or NULL if no RelayState is given
195- */
196- public function getRelayState (): ?string
197- {
198- return $ this ->relayState ;
199- }
200-
201-
202- /**
203- * Set the RelayState associated with this message.
204- *
205- * @param string|null $relayState The new RelayState
206- */
207- public function setRelayState (string $ relayState = null ): void
208- {
209- Assert::nullOrNotWhitespaceOnly ($ relayState );
210-
211- $ this ->relayState = $ relayState ;
212- }
213-
214-
215181 /**
216182 * Get the XML element.
217183 *
0 commit comments