src/Saml.php
public function validateRelayState(Response $response, $relayState)
    {
        if ($response->getRelayState() != null && $response->getRelayState() != $relayState) {
            throw new SamlException('urn:oasis:names:tc:SAML:2.0:status:RequestDenied');
        }
    }
public function validateRelayState(Response $response, $relayState)
    {
        if ($response->getRelayState() != null && $response->getRelayState() != $relayState) {
            throw new SamlException('urn:oasis:names:tc:SAML:2.0:status:RequestDenied');
        }
    }
public function validateRelayState ( Response $ response , $ relayState ) { if ( $ response -> getRelayState ( ) != null && $ response -> getRelayState ( ) != $ relayState ) { throw new SamlException ( 'urn:oasis:names:tc:SAML:2.0:status:RequestDenied' ) ; } }
Validate IdP Response RelayState

@param Response $response
@param string   $relayState

@throws SamlException
Validate IdP Response RelayState