PHP 클래스 Imbo\EventListener\Authenticate

This listener enforces the usage of the signature and timestamp parameters when the user agent wants to perform write operations (PUT/POST/DELETE).
저자: Christer Edvartsen ([email protected])
상속: implements Imbo\EventListener\ListenerInterface
파일 보기 프로젝트 열기: imbo/imbo 1 사용 예제들

공개 메소드들

메소드 설명
authenticate ( Imbo\EventManager\EventInterface $event )
getSubscribedEvents ( )

비공개 메소드들

메소드 설명
signatureIsValid ( string $httpMethod, string $url, string $publicKey, array $privateKey, string $timestamp, string $signature ) : boolean Check if the signature is valid
timestampHasExpired ( string $timestamp ) : boolean Check if the timestamp has expired
timestampIsValid ( string $timestamp ) : boolean Check if the format of the timestamp is valid

메소드 상세

authenticate() 공개 메소드

public authenticate ( Imbo\EventManager\EventInterface $event )
$event Imbo\EventManager\EventInterface

getSubscribedEvents() 공개 정적인 메소드

public static getSubscribedEvents ( )