JanRain OpenID Library

Auth_OpenID_Signatory
in package

Responsible for the signature of query data and the verification of OpenID signature values.

Table of Contents

$dumb_key  : mixed
$normal_key  : mixed
$SECRET_LIFETIME  : mixed
$store  : Auth_OpenID_OpenIDStore
__construct()  : mixed
Create a new signatory using a given store.
createAssociation()  : Auth_OpenID_Association
Make a new association.
getAssociation()  : Auth_OpenID_Association|Auth_OpenID_ServerError|null
Given an association handle, get the association from the store, or return a ServerError or null if something goes wrong.
invalidate()  : mixed
Invalidate a given association handle.
sign()  : mixed
Given a response, sign the fields in the response's 'signed' list, and insert the signature into the response.
verify()  : bool
Verify, using a given association handle, a signature with signed key-value pairs from an HTTP request.

Properties

$dumb_key

public mixed $dumb_key = 'http://localhost/|dumb'

$normal_key

public mixed $normal_key = 'http://localhost/|normal'

$SECRET_LIFETIME

public mixed $SECRET_LIFETIME = 1209600

Methods

createAssociation()

Make a new association.

public createAssociation([bool $dumb = true ][, string $assoc_type = 'HMAC-SHA1' ]) : Auth_OpenID_Association
Parameters
$dumb : bool = true
$assoc_type : string = 'HMAC-SHA1'
Return values
Auth_OpenID_Association

invalidate()

Invalidate a given association handle.

public invalidate(string $assoc_handle, bool $dumb) : mixed
Parameters
$assoc_handle : string
$dumb : bool
Return values
mixed

verify()

Verify, using a given association handle, a signature with signed key-value pairs from an HTTP request.

public verify(string $assoc_handle, Auth_OpenID_Message $message) : bool
Parameters
$assoc_handle : string
$message : Auth_OpenID_Message
Return values
bool

Search results