Package org.saidone.service
Class AuthenticationService
java.lang.Object
org.saidone.component.BaseComponent
org.saidone.service.AuthenticationService
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware
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 TypeMethodDescriptionbooleanisAuthorized(String authHeader) Determines whether the given HTTP Authorization header contains valid Basic credentials for an Alfresco administrator.Methods inherited from class org.saidone.component.BaseComponent
init, setApplicationContext, shutDown, stop
-
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:
trueif the credentials are valid and belong to an admin;falseotherwise
-