Class AuthenticationService

java.lang.Object
org.saidone.service.AuthenticationService

@Service public class AuthenticationService extends Object
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 Details

    • AuthenticationService

      public AuthenticationService()
  • Method Details

    • isAuthorized

      public boolean isAuthorized(String authHeader)
      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