SAML2\Assertion::getNotBefore PHP Method

getNotBefore() public method

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

Usage Example

Ejemplo n.º 1
0
 public function validate(Assertion $assertion, Result $result)
 {
     $notBeforeTimestamp = $assertion->getNotBefore();
     if ($notBeforeTimestamp && $notBeforeTimestamp > Temporal::getTime() + 60) {
         $result->addError('Received an assertion that is valid in the future. Check clock synchronization on IdP and SP.');
     }
 }
All Usage Examples Of SAML2\Assertion::getNotBefore