An AuthNMethod is an abstract class that corresponds to a method of
authenticating Agents. It deals with verifying the tokens passed to it and authenticating them. AuthNMethods do not keep track of any authentication state information. They simply provide a means of querying stores of information to determine if tokens are valid or not.
AuthNMethods deal with two types of tokens. The first are arbitrary data that is passed by the user trying to authenticate. This data may be an array with elements for 'username' and 'password', it might be a string operated on by a private key, it might be a Kerberos Ticket, or pretty much anything else. It is up to a given AuthNMethod to pass the tokens passed to it to appropriate AuthNTokens objects for the handling of this data. AuthNTokens objects provide access to a string 'identifier' for given tokens data that can be used by other systems to identify this set of tokens. Additionally, the AuthNTokens objects can be initialized with an identifier and then passed to the authentication method for querying on the existance or associated properties of the user that corresponds to the identifier.
Located in /harmoni/core/oki2/agentmanagement/AuthNMethods/AuthNMethod.abstract.php (line 37)
Class | Description |
---|---|
LDAPAuthNMethod | The LDAPAuthNMethod is used to authenticate against an LDAP system. |
SQLDatabaseAuthNMethod | The SQLDatabaseAuthNMethod is used to authenticate against a SQL database. |
Constructor. Does not take any configuration. assignConfiguration() Should be used for this purpose.
Add tokens to the system.
Store the configuration.
Authenticate a agent tokens
Authenticate a Tokens object
Create a Tokens object that provides common access to the contents of the tokens passed to the system by the user or returned from the underlying system.
Create a Tokens object for a given identifier. An identifier is often a username, but does not have to be as long as it is a string unique within this authentication method.
Create a Tokens Object
Add tokens and associated Properties to the system.
Return true if the tokens can be matched in the system.
Answer an iterator of all groups
Should return the 'display_name_property' value for tokens
Answer a group by Id
Answer an iterator of groups that contain the Id. If $includeSubgroups is true then groups will be returned if any descendent group contains the Id.
Answer an iterator of groups that contain the tokens. If $includeSubgroups is true then groups will be returned if any descendent group contains the tokens.
Return Properties associated with the tokens. The properties will have the AuthNMethod Type as their Type. One Property that should always be included is 'identifier' which corresponds to the identifier for the tokens.
Return Properties associated with the Tokens. The properties will have the AuthNMethod Type as their Type. One Property that should always be included is 'identifier' which corresponds to the identifier for the tokens
Answer an iterator of the top-level groups, may be equivalent to getAllGroups() if this directory is not hierarchically organized.
Get an iterator of the AuthNTokens that match the search string passed.
The '*' wildcard character can be present in the string and will be converted to the system wildcard for the AuthNMethod if wildcards are supported or removed (and the exact string searched for) if they are not supported.
When multiple fields are searched on an OR search is performed, i.e. '*ach*' would match username/fullname 'achapin'/'Chapin, Alex' as well as 'zsmith'/'Smith, Zach'.
Answer a true if the Id corresponds to a valid group
Set the Type of this AuthNMethod. This should only be used by the AuthNMethod manager, not classes outside of this package.
Answer TRUE if this AuthN method supports directory functionality
Return TRUE if this method supports property updates.
Return TRUE if this method supports token addition.
Return TRUE if this method supports token deletion.
Return TRUE if this method supports token updates.
Return true if the AuthNTokens can be matched in the system.
Update the properties for the given tokens
Update old tokens to new tokens in the system.
A private method used to populate the Properties that correspond to the given AuthNTokens
Documentation generated on Wed, 19 Sep 2007 10:21:35 -0400 by phpDocumentor 1.3.0RC3