<p> AuthenticationManager:
<p> All implementations of OsidManager (manager) provide methods for accessing and manipulating the various objects defined in the OSID package. A manager defines an implementation of an OSID. All other OSID objects come either directly or indirectly from the manager. New instances of the OSID objects are created either directly or indirectly by the manager. Because the OSID objects are defined using interfaces, create methods must be used instead of the new operator to create instances of the OSID objects. Create methods are used both to instantiate and persist OSID objects. Using the OsidManager class to define an OSID's implementation allows the application to change OSID implementations by changing the OsidManager package name used to load an implementation. Applications developed using managers permit OSID implementation substitution without changing the application source code. As with all managers, use the OsidLoader to load an implementation of this interface. </p>
<p></p>
<p> OSID Version: 2.0 </p>
Located in /harmoni/core/oki2/authentication/HarmoniAuthenticationManager.class.php (line 69)
OsidManager | --AuthenticationManager | --HarmoniAuthenticationManager
Constructor. Ititializes the availible AuthenticationTypes and results.
Assign the configuration of this Manager. Valid configuration options are as
follows: token_collectors (array) An array in which the keys are the serialized Type objects that correspond to AuthenticationTypes and the values are the TokenCollector objects to be used fot that AuthenticationType.
Assign the context of this OsidManager.
Invoke the authentication process of the specified Type to identify the
user. It may be necessary to call isUserAuthenticated to check the status of authentication. The standard authentication technique of limiting the time an user's authentication is valid requires explicit queries of the authentication status. It is likely that checking the status of authentication will occur more frequently than invoking the mechanism to authenticate the user. Separation of the authentication process from checking the status of the authentication process is made explicit by having the authenticateUser and isUserAuthenticated methods.
Destroy authentication for all authentication types.
Destroy authentication for the specified authentication type.
Get the authentication Types that are supported by the implementation.
Answer the first authenticated Id found for the current user or anonymous if none is found.
WARNING: NOT IN OSID
Return context of this OsidManager.
Get the unique Id of the Agent that represents the user for the specified AuthenticationType. Agents are managed using the Agent OSID.
Check the current authentication status of the user. If the method returns true, the user is authenticated. If the method returns false, the user is not authenticated. This can indicate that the user could not be authenticated or that the user's authentication has timed out.
The intent is to use the method authenticateUser to invoke the authentication process. The standard authentication technique of limiting the time an user's authentication is valid requires explicit queries of the authentication status. It is likely that checking the status of authentication will occur more frequently than invoking the mechanism to authenticate the user. Separation of the authentication process from checking the status of the authentication process is made explicit by having the authenticateUser and isUserAuthenticated methods.
Answer true if the current user is authenticated with any authentication type.
WARNING: NOT IN OSID
Log out the current user if they have authorization to act as other users, and log them in as the new user, setting a session identifier to add to the logs.
Log in a user if the username matches, but without checking the password, as part of the admin-act-as process
Validate the type passed to ensure that it is one of our supported ones.
An error will be thrown if the type is invalid.
Get the AgentId that corresponds to the AuthNTokens passed and AuthNType.
If no Agent is currently mapped to the AuthNTokens, create a new Agent and map it to the tokens.
Prompt the user for their authentication tokens and recieve the responce.
Return a string version of a type.
Inherited From AuthenticationManager
AuthenticationManager::authenticateUser()
AuthenticationManager::destroyAuthentication()
AuthenticationManager::destroyAuthenticationForType()
AuthenticationManager::getAuthenticationTypes()
AuthenticationManager::getUserId()
AuthenticationManager::isUserAuthenticated()
Inherited From OsidManager
OsidManager::assignConfiguration()
OsidManager::assignOsidContext()
OsidManager::getOsidContext()
OsidManager::osidVersion_2_0()
Documentation generated on Wed, 19 Sep 2007 10:23:45 -0400 by phpDocumentor 1.3.0RC3