PHP Class Auth_OpenID_Signatory

Show file Open project: openid/php-openid

Public Properties

Property Type Description
$SECRET_LIFETIME = 14 * 24 * 60 * 60; # 14 days, in seconds
$dumb_key
$normal_key server URL.

Public Methods

Method 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 method

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

createAssociation() public method

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

getAssociation() public method

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 method

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

sign() public method

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

verify() public method

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 property

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

$dumb_key public property

public $dumb_key

$normal_key public property

server URL.
public $normal_key