Package io.milton.http
Interface SecurityManager
- All Known Implementing Classes:
LdapSecurityManager,NullSecurityManager,ReadOnlySecurityManager,SimpleSecurityManager,WrappingFtpSecurityManager
public interface SecurityManager
-
Method Summary
Modifier and TypeMethodDescriptionauthenticate(DigestResponse digestRequest) Authenticate a digest requestauthenticate(String user, String password) booleanauthorise(Request request, Request.Method method, Auth auth, Resource resource) Check that the authenticater user can access the given resource for the given method.boolean
-
Method Details
-
authenticate
Authenticate a digest request- Parameters:
digestRequest-- Returns:
- See Also:
-
authenticate
- Parameters:
user-password-- Returns:
- - some object representing the user to associate with the request
-
authorise
Check that the authenticater user can access the given resource for the given method.- Parameters:
request- - the request itselfmethod- - the request methodauth- - authentication object representing the current userresource- - the resource being operated on- Returns:
- - true to indicate that the user is allowed access
-
getRealm
- Returns:
- - the name of the security realm this is managing
-
isDigestAllowed
boolean isDigestAllowed()
-