|
Previous Class |
Solar_Auth_Adapter_Typekey |
Next Page |
Solar_Auth_Adapter_Typekey
Authentication adapter for TypeKey.
Requires that PHP have been compiled using "--enable-bcmath" or '--with-gmp'.
Based largely on PEAR Auth_Typekey proposal by Daiji Hirata, in particular the DSA signature verification methods. See the original code at http://www.uva.ne.jp/Auth_TypeKey/Auth_TypeKey.phps.
Developed for, and then donated by, Mashery.com http://mashery.com.
For more info on TypeKey, see ...
Catalog
This class is part of the Solar_Auth package.
Inheritance:
- Solar_Base
- Solar_Auth_Adapter
- Solar_Auth_Adapter_Typekey
- Solar_Auth_Adapter
Constants
None.
Public Properties
These are all the public properties in the Solar_Auth_Adapter_Typekey class.
You can also view the list of all public, protected, and private properties.
$active- The Unix time at which the authenticated handle was last valid.
$allow- Whether or not to allow automatic login/logout at start() time.
$email- The email address of the currently authenticated user.
$handle- The currently authenticated user handle.
$initial- The Unix time at which the handle was initially authenticated.
$moniker- The "display name" or "full name" of the currently authenticated user.
$status- The status code of the current user authentication.
$uid- The numeric user ID for the currently authenticated user.
$uri- The URI for the currently authenticated user.
Public Methods
These are all the public methods in the Solar_Auth_Adapter_Typekey class.
You can also view the list of all public, protected, and private methods.
__construct()- Constructor.
__destruct()- Default destructor; does nothing other than provide a safe fallback for calls to parent::__destruct().
apiVersion()- Reports the API version for this class.
dump()- Convenience method for getting a dump the whole object, or one of its properties, or an external variable.
getFlash()- Retrieves a "read-once" session value for Solar_Auth.
isLoginRequest()- Is the current page-load a login request?
isLogoutRequest()- Tells if the current page load appears to be the result of an attempt to log out.
isValid()- Tells whether the current authentication is valid.
locale()- Looks up class-specific locale strings based on a key.
processLogin()- Processes login attempts and sets user credentials.
processLogout()- Processes logout attempts.
reset()- Resets any authentication data in the session.
start()- Starts a session with authentication.
updateIdleExpire()- Updates idle and expire times, invalidating authentication if they are exceeded.
Local
- Overview
- Constants
- Properties
- Methods
- __construct()
- __destruct()
- _bc_bindec()
- _bc_exgcd()
- _bc_hexdec()
- _bc_invert()
- _exception()
- _fetchKeyData()
- _gmp_bindec()
- _loadSession()
- _processLogin()
- _processLogout()
- _redirect()
- _verify_bc()
- _verify_gmp()
- apiVersion()
- dump()
- getFlash()
- isLoginRequest()
- isLogoutRequest()
- isValid()
- locale()
- processLogin()
- processLogout()
- reset()
- start()
- updateIdleExpire()