Interface AuthenticationService
-
- All Known Implementing Classes:
AuthenticationServiceImpl
public interface AuthenticationService
This OSGi service is used for authenticating a user and to be used in by other components in the same carbon environment.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
authenticate(String username, String password)
Authenticate the given user If the password is similar to the shared key, it assumes that the request has came from the authenticated user.
-
-
-
Method Detail
-
authenticate
boolean authenticate(String username, String password) throws AuthenticationException
Authenticate the given user If the password is similar to the shared key, it assumes that the request has came from the authenticated user. Otherwise, the user is authenticated based on provided username and password- Parameters:
username
- The name of the user to be authenticatedpassword
- The password of the user to be authenticated.- Returns:
true
if the user is authenticated- Throws:
AuthenticationException
- for errors if the authentication cannot be done.
-
-