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
$store
private
Auth_OpenID_OpenIDStore
$store
Methods
__construct()
Create a new signatory using a given store.
public
__construct(Auth_OpenID_OpenIDStore $store) : mixed
Parameters
- $store : Auth_OpenID_OpenIDStore
Return values
mixed —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 —getAssociation()
Given an association handle, get the association from the store, or return a ServerError or null if something goes wrong.
public
getAssociation(string $assoc_handle, bool $dumb[, bool $check_expiration = true ]) : Auth_OpenID_Association|Auth_OpenID_ServerError|null
Parameters
- $assoc_handle : string
- $dumb : bool
- $check_expiration : bool = true
Return values
Auth_OpenID_Association|Auth_OpenID_ServerError|null —invalidate()
Invalidate a given association handle.
public
invalidate(string $assoc_handle, bool $dumb) : mixed
Parameters
- $assoc_handle : string
- $dumb : bool
Return values
mixed —sign()
Given a response, sign the fields in the response's 'signed' list, and insert the signature into the response.
public
sign(Auth_OpenID_ServerResponse $response) : mixed
Parameters
- $response : Auth_OpenID_ServerResponse
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