PHP 클래스 Auth_OpenID_PredisStore

Uses Predis library {@see https://github.com/nrk/predis}. Requires PHP >= 5.3.
상속: extends Auth_OpenID_OpenIDStore
파일 보기 프로젝트 열기: openid/php-openid

보호된 프로퍼티들

프로퍼티 타입 설명
$prefix string Prefix for Redis keys
$redis Predis\Client

공개 메소드들

메소드 설명
__construct ( Client $redis, string $prefix = '' ) Initializes a new {@link Auth_OpenID_PredisStore} instance.
associationKey ( $server_url, $handle = null ) Key is prefixed with $prefix and 'openid_association_' string
associationServerKey ( $server_url ) Key is prefixed with $prefix and 'openid_association_server_' string
getAssociation ( $server_url, $handle = null ) Read association from Redis. If no handle given and multiple associations found, returns latest issued
removeAssociation ( $server_url, $handle ) Immediately delete association from Redis.
storeAssociation ( $server_url, $association ) Store association until its expiration time in Redis server.
supportsCleanup ( ) Report that this storage doesn't support cleanup
useNonce ( $server_url, $timestamp, $salt ) Create nonce for server and salt, expiring after $Auth_OpenID_SKEW seconds.

비공개 메소드들

메소드 설명
getAssociationFromServer ( $associationKey ) Function to actually receive and unserialize the association from the server.
nonceKey ( $server_url, $salt ) Build up nonce key

메소드 상세

__construct() 공개 메소드

Initializes a new {@link Auth_OpenID_PredisStore} instance.
public __construct ( Client $redis, string $prefix = '' )
$redis Predis\Client Predis client object
$prefix string Prefix for all keys stored to the Redis

associationKey() 공개 메소드

Key is prefixed with $prefix and 'openid_association_' string
public associationKey ( $server_url, $handle = null )

associationServerKey() 공개 메소드

Key is prefixed with $prefix and 'openid_association_server_' string
public associationServerKey ( $server_url )

getAssociation() 공개 메소드

Read association from Redis. If no handle given and multiple associations found, returns latest issued
public getAssociation ( $server_url, $handle = null )

removeAssociation() 공개 메소드

Immediately delete association from Redis.
public removeAssociation ( $server_url, $handle )

storeAssociation() 공개 메소드

Overwrites any existing association with same server_url and handle. Handles list of associations for every server.
public storeAssociation ( $server_url, $association )

supportsCleanup() 공개 메소드

Report that this storage doesn't support cleanup
public supportsCleanup ( )

useNonce() 공개 메소드

Create nonce for server and salt, expiring after $Auth_OpenID_SKEW seconds.
public useNonce ( $server_url, $timestamp, $salt )

프로퍼티 상세

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

Prefix for Redis keys
protected string $prefix
리턴 string

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

protected Client,Predis $redis
리턴 Predis\Client