org.ow2.bonita.identity.auth
Interface AuthenticationServiceOp

All Known Implementing Classes:
PropertiesBasedAuthenticationService

public interface AuthenticationServiceOp

Author:
"Pierre Vigneras"

Method Summary
 java.lang.String authenticateUser(java.lang.String... params)
          Authenticate a user given some authentication strings.
 

Method Detail

authenticateUser

java.lang.String authenticateUser(java.lang.String... params)
Authenticate a user given some authentication strings. The strings params can represent a classical pair login/password where login can be a Unix login name, an email address, an OpenId, an LDAP cn, ... depending on the actual implementation. Usually the implementation of this interface comes with a corresponding LoginModule. This LoginModule knows what informations are required for this service, ask them to the user (using Callback) and forward them to this service implementation. On success, this implementation returns an id String that identifies the authenticated user in the IdentityServiceOp implementation.

Parameters:
params - an array of authentication strings (e.g.: login/password)
Returns:
the id mapped to a UserOp in the related IdentityServiceOp implementation or null if the authentication failed.


Copyright © 2009 OW2 Consortium. All Rights Reserved.