Package org.saidone.service
Class AuthenticationService
java.lang.Object
org.saidone.service.AuthenticationService
Service responsible for validating Basic authentication headers.
The provided credentials are decoded and checked against Alfresco via
AlfrescoService
to verify that the user has administrative
privileges.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
isAuthorized
(String authHeader) Determines whether the given HTTP Authorization header contains valid Basic credentials for an Alfresco administrator.
-
Constructor Details
-
AuthenticationService
public AuthenticationService()
-
-
Method Details
-
isAuthorized
Determines whether the given HTTP Authorization header contains valid Basic credentials for an Alfresco administrator.- Parameters:
authHeader
- the Authorization header value received from the client- Returns:
true
if the credentials are valid and belong to an admin;false
otherwise
-