PHP Класс Auth_OpenID_Signatory

Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$SECRET_LIFETIME = 14 * 24 * 60 * 60; # 14 days, in seconds
$dumb_key
$normal_key server URL.

Открытые методы

Метод Описание
__construct ( $store ) Create a new signatory using a given store.
createAssociation ( $dumb = true, $assoc_type = 'HMAC-SHA1' ) Make a new association.
getAssociation ( $assoc_handle, $dumb, $check_expiration = true ) Given an association handle, get the association from the store, or return a ServerError or null if something goes wrong.
invalidate ( $assoc_handle, $dumb ) Invalidate a given association handle.
sign ( $response ) Given a response, sign the fields in the response's 'signed' list, and insert the signature into the response.
verify ( $assoc_handle, $message ) Verify, using a given association handle, a signature with signed key-value pairs from an HTTP request.

Описание методов

__construct() публичный Метод

Create a new signatory using a given store.
public __construct ( $store )

createAssociation() публичный Метод

Make a new association.
public createAssociation ( $dumb = true, $assoc_type = 'HMAC-SHA1' )

getAssociation() публичный Метод

Given an association handle, get the association from the store, or return a ServerError or null if something goes wrong.
public getAssociation ( $assoc_handle, $dumb, $check_expiration = true )

invalidate() публичный Метод

Invalidate a given association handle.
public invalidate ( $assoc_handle, $dumb )

sign() публичный Метод

Given a response, sign the fields in the response's 'signed' list, and insert the signature into the response.
public sign ( $response )

verify() публичный Метод

Verify, using a given association handle, a signature with signed key-value pairs from an HTTP request.
public verify ( $assoc_handle, $message )

Описание свойств

$SECRET_LIFETIME публичное свойство

= 14 * 24 * 60 * 60; # 14 days, in seconds
public $SECRET_LIFETIME

$dumb_key публичное свойство

public $dumb_key

$normal_key публичное свойство

server URL.
public $normal_key