PHP 클래스 ParagonIE\Halite\Cookie

파일 보기 프로젝트 열기: paragonie/halite

보호된 프로퍼티들

프로퍼티 타입 설명
$key EncryptionKey

공개 메소드들

메소드 설명
__construct ( EncryptionKey $key ) Cookie constructor.
__debugInfo ( ) : array Hide this from var_dump(), etc.
fetch ( string $name ) : mixed Store a value in an encrypted cookie
store ( string $name, mixed $value, integer $expire, string $path = '/', string $domain = '', boolean $secure = true, boolean $httpOnly = true ) : boolean Store a value in an encrypted cookie

보호된 메소드들

메소드 설명
getConfig ( string $stored ) : SymmetricConfig Get the configuration for this version of halite

메소드 상세

__construct() 공개 메소드

Cookie constructor.
public __construct ( EncryptionKey $key )
$key EncryptionKey

__debugInfo() 공개 메소드

Hide this from var_dump(), etc.
public __debugInfo ( ) : array
리턴 array

fetch() 공개 메소드

Store a value in an encrypted cookie
public fetch ( string $name ) : mixed
$name string
리턴 mixed (typically an array)

getConfig() 보호된 정적인 메소드

Get the configuration for this version of halite
protected static getConfig ( string $stored ) : SymmetricConfig
$stored string A stored password hash
리턴 SymmetricConfig

store() 공개 메소드

Store a value in an encrypted cookie
public store ( string $name, mixed $value, integer $expire, string $path = '/', string $domain = '', boolean $secure = true, boolean $httpOnly = true ) : boolean
$name string
$value mixed
$expire integer (defaults to 0)
$path string (defaults to '/')
$domain string (defaults to NULL)
$secure boolean (defaults to TRUE)
$httpOnly boolean (defaults to TRUE)
리턴 boolean

프로퍼티 상세

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

protected EncryptionKey $key
리턴 EncryptionKey