SAML2\Assertion::getNotOnOrAfter PHP Method

getNotOnOrAfter() public method

This function returns null if there are no restrictions on how late the assertion can be used.
public getNotOnOrAfter ( ) : integer | null
return integer | null The latest timestamp this assertion is valid.
    public function getNotOnOrAfter()
    {
        return $this->notOnOrAfter;
    }

Usage Example

Beispiel #1
0
 public function validate(Assertion $assertion, Result $result)
 {
     $notValidOnOrAfterTimestamp = $assertion->getNotOnOrAfter();
     if ($notValidOnOrAfterTimestamp && $notValidOnOrAfterTimestamp <= Temporal::getTime() - 60) {
         $result->addError('Received an assertion that has expired. Check clock synchronization on IdP and SP.');
     }
 }
All Usage Examples Of SAML2\Assertion::getNotOnOrAfter