PHP Class Auth_OpenID_Signatory

Afficher le fichier Open project: openid/php-openid

Méthodes publiques

Свойство Type Description
$SECRET_LIFETIME = 14 * 24 * 60 * 60; # 14 days, in seconds
$dumb_key
$normal_key server URL.

Méthodes publiques

Méthode Description
__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.

Method Details

__construct() public méthode

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

createAssociation() public méthode

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

getAssociation() public méthode

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() public méthode

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

sign() public méthode

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

verify() public méthode

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

Property Details

$SECRET_LIFETIME public_oe property

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

$dumb_key public_oe property

public $dumb_key

$normal_key public_oe property

server URL.
public $normal_key