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
Modifier and TypeMethodDescriptionbooleanauthenticate(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 Details
-
authenticate
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:
trueif the user is authenticated- Throws:
AuthenticationException- for errors if the authentication cannot be done.
-