Interface SecurityManager

All Known Implementing Classes:
LdapSecurityManager, NullSecurityManager, ReadOnlySecurityManager, SimpleSecurityManager, WrappingFtpSecurityManager

public interface SecurityManager
  • Method Details

    • authenticate

      Object authenticate(DigestResponse digestRequest)
      Authenticate a digest request
      Parameters:
      digestRequest -
      Returns:
      See Also:
    • authenticate

      Object authenticate(String user, String password)
      Parameters:
      user -
      password -
      Returns:
      - some object representing the user to associate with the request
    • authorise

      boolean authorise(Request request, Request.Method method, Auth auth, Resource resource)
      Check that the authenticater user can access the given resource for the given method.
      Parameters:
      request - - the request itself
      method - - the request method
      auth - - authentication object representing the current user
      resource - - the resource being operated on
      Returns:
      - true to indicate that the user is allowed access
    • getRealm

      String getRealm(String host)
      Returns:
      - the name of the security realm this is managing
    • isDigestAllowed

      boolean isDigestAllowed()