Akamai {OPEN} EdgeGrid Authentication for PHP
  • Namespace
  • Class
  • Tree

Namespaces

  • Akamai
    • Open
      • EdgeGrid
        • Authentication
          • Exception
            • SignerException
        • Exception
          • HandlerException
        • Handler

Classes

  • Nonce
  • Timestamp

Exceptions

  • Exception

Class Timestamp

Generates an Akamai formatted Date for each request

Namespace: Akamai\Open\EdgeGrid\Authentication
Package: Akamai\Open\EdgeGrid\Authentication
Located at Authentication/Timestamp.php

Methods summary

public
# __construct( )

Signing Timestamp

Signing Timestamp

public boolean
# isValid( )

Return true is timestamp is less than 10s old

Return true is timestamp is less than 10s old

Returns

boolean
public
# setValidFor( string $interval )

Set how long the current timestamp is considered valid

Set how long the current timestamp is considered valid

Parameters

$interval
A \DateInterval time spec

Returns


$this

See

\DateInterval
public string
# __toString( )

Return the timestamp when cast to string

Return the timestamp when cast to string

Returns

string
Returns the date

Constants summary

string FORMAT
# 'Ymd\TH:i:sO'

Properties summary

protected DateTime $timestamp

Signing Timestamp

Signing Timestamp

#
protected string $validFor

\DateInterval spec

\DateInterval spec

# 'PT10S'
Akamai {OPEN} EdgeGrid Authentication for PHP API documentation generated by ApiGen