PHP 클래스 Opis\Closure\DefaultSecurityProvider

상속: implements Opis\Closure\SecurityProviderInterface
파일 보기 프로젝트 열기: opis/closure

보호된 프로퍼티들

프로퍼티 타입 설명
$key Secret key

공개 메소드들

메소드 설명
__construct ( string $key ) Constructor
sign ( &$data ) : array Implementation of \Opis\Closure\SecurityProvider::sign
verify ( &$data ) : string | boolean Implementation of \Opis\Closure\SecurityProvider::verify

메소드 상세

__construct() 공개 메소드

Constructor
public __construct ( string $key )
$key string Secret key

sign() 공개 메소드

Implementation of \Opis\Closure\SecurityProvider::sign
public sign ( &$data ) : array
리턴 array Secured data

verify() 공개 메소드

Implementation of \Opis\Closure\SecurityProvider::verify
public verify ( &$data ) : string | boolean
리턴 string | boolean Returns `false` if the signature is not valid

프로퍼티 상세

$key 보호되어 있는 프로퍼티

Secret key
protected $key