phpPoA2
[ class tree: phpPoA2 ] [ index: phpPoA2 ] [ all elements ]

Class: OpenIDAuthnEngine

Source Location: /lib/authn/OpenIDAuthnEngine.php

Class Overview

GenericEngine
   |
   --AuthenticationEngine
      |
      --OpenIDAuthnEngine

Authentication engine for the OpenID protocol.


Variables

Methods


Inherited Variables

Inherited Methods

Class: AuthenticationEngine

AuthenticationEngine::authenticate()
Trigger the authentication of the user in the current context. May perform HTTP redirections or any other procedure to gather the authentication status if the user, so don't expect it to return control once called.
AuthenticationEngine::getAttribute()
Get an specific attribute for the current user, by specifying its name and namespace. May trigger some attribute query procedure.
AuthenticationEngine::getAttributes()
Get an associative array with the set of common attributes for the current user. May trigger some attribute recollection.
AuthenticationEngine::isAuthenticated()
Check the current authentication status withing this context. Does not trigger any authentication procedure.
AuthenticationEngine::logout()
Perform a logout (locally or global).

Class: GenericEngine

GenericEngine::__construct()
Main constructor for the engine.
GenericEngine::addHook()
Adds a function to the specified hook, which will be executed at some point of the code.
GenericEngine::clean()
Unregister error and exception handlers. Use it only for methods not declared in the interface that previously called registerHandler() method.
GenericEngine::configure()
Configure the engine.
GenericEngine::registerHandler()
Register error and exception handlers for logging. Use it only for methods not declared in the interface that could trigger errors.
GenericEngine::removeHook()
Removes a function fromt he specified hook.
GenericEngine::runHooks()
Run all hooks attached to an specific action.
GenericEngine::setHandler()
Set the event handler to the one specified.

Class Details

[line 31]
Authentication engine for the OpenID protocol.

PLEASE NOTE THAT THIS ENGINE WORKS ONLY FOR WEB-BASED APPLICATIONS.




[ Top ]


Class Variables

$attributes =

[line 35]



Tags:

access:  protected

Type:   mixed


[ Top ]

$lOpenID =

[line 33]



Tags:

access:  protected

Type:   mixed


[ Top ]

$reqAttributes = array (
        'namePerson/friendly'     => 'nickname',
        'contact/email'           => 'email'
    )

[line 38]



Tags:

access:  protected

Type:   mixed


[ Top ]

$status =

[line 34]



Tags:

access:  protected

Type:   mixed


[ Top ]



Class Methods


constructor __construct [line 43]

OpenIDAuthnEngine __construct( $file, $site)



Tags:

access:  public


Overrides GenericEngine::__construct() (Main constructor for the engine.)

Parameters:

   $file  
   $site  

[ Top ]

method authenticate [line 60]

void authenticate( )



Tags:

access:  public


Overrides AuthenticationEngine::authenticate() (Trigger the authentication of the user in the current context. May perform HTTP redirections or any other procedure to gather the authentication status if the user, so don't expect it to return control once called.)

[ Top ]

method configure [line 56]

void configure( $file, $site)



Tags:

access:  public


Overrides GenericEngine::configure() (Configure the engine.)

Parameters:

   $file  
   $site  

[ Top ]

method getAttribute [line 124]

void getAttribute( $name, [ $namespace = null])



Tags:

access:  public


Overrides AuthenticationEngine::getAttribute() (Get an specific attribute for the current user, by specifying its name and namespace. May trigger some attribute query procedure.)

Parameters:

   $name  
   $namespace  

[ Top ]

method getAttributes [line 120]

void getAttributes( )



Tags:

access:  public


Overrides AuthenticationEngine::getAttributes() (Get an associative array with the set of common attributes for the current user. May trigger some attribute recollection.)

[ Top ]

method isAuthenticated [line 116]

void isAuthenticated( )



Tags:

access:  public


Overrides AuthenticationEngine::isAuthenticated() (Check the current authentication status withing this context. Does not trigger any authentication procedure.)

[ Top ]

method logout [line 132]

void logout( [ $slo = false])



Tags:

access:  public


Overrides AuthenticationEngine::logout() (Perform a logout (locally or global).)

Parameters:

   $slo  

[ Top ]


Documentation generated on Mon, 20 Feb 2012 12:07:07 +0100 by phpDocumentor 1.4.3