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

Class: LitePoA

Source Location: /LitePoA.php

Class Overview

PoA
   |
   --AutoPoA
      |
      --LitePoA

Class that embbeds all functionallity (authentication, attribute collection and authorization) in one method, just like older versions of phpPoA.


Author(s):

Variables

Methods


Inherited Variables

Inherited Methods

Class: AutoPoA

AutoPoA::authenticate()
AutoPoA::isAuthorized()

Class: PoA

PoA::__construct()
Main constructor. Configures the PoA and performs initialization.
PoA::addHook()
Attach a hook object to the appropriate entry point of the available authentication or authorization engines.
PoA::authenticate()
Perform a federated login for the user.
PoA::authorize()
Authorize a given subject with the data retrieved from federated login.
PoA::clean()
PoA::getAttribute()
Get the value (or values) of an attribute, if present.
PoA::getAttributes()
Retrieve the attributes provided by the user when logged in.
PoA::getAuthorizationEngines()
Returns the authorization engines configured for the current PoA, or the one specified.
PoA::getAuthorizationLevels()
Get the authorization levels that match for the user specified, according to the configuration.
PoA::isAuthenticated()
Query the current status of the user in the federation.
PoA::isAuthorized()
Perform authorization for the a given subject.
PoA::logout()
Remove the user's session and trigger a logout for the specified authentication protocol.
PoA::removeHook()
Remove a hook from the specified entry point of the available authentication or authorization engines.
PoA::revoke()
Revoke authorization for a given subject identified by an e-mail.

Class Details

[line 33]
Class that embbeds all functionallity (authentication, attribute collection and authorization) in one method, just like older versions of phpPoA.



Tags:

deprecated:  This class is for backwards compatibility. Please avoid using it.


[ Top ]


Class Variables

$handler =

[line 35]



Tags:

access:  protected

Type:   mixed
Overrides:   Array


[ Top ]



Class Methods


method checkAccess [line 55]

A checkAccess( )

A shortcut for the whole authentication and authorization process.

User will be authenticated, his attributes collected and then he will be checked for authorization with the identifier built with the ID builder function.




Tags:

return:  hash
deprecated:  This method is for backwards compatibility. Please avoid using it.
access:  public


[ Top ]

method setIDBuilder [line 43]

void setIDBuilder( handler $handler)

Set an attribute handler to build identifiers for the users according to their attributes. Method must receive a hash of attributes ("name" => "value").



Tags:

access:  public


Parameters:

handler   $handler   The name of the function.

[ Top ]


Documentation generated on Tue, 14 Jun 2011 12:22:10 +0200 by phpDocumentor 1.4.3