Package io.milton.http.fs
Class NullSecurityManager
java.lang.Object
io.milton.http.fs.NullSecurityManager
- All Implemented Interfaces:
SecurityManager
-
Constructor Summary
Constructors -
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.booleanvoid
-
Constructor Details
-
NullSecurityManager
public NullSecurityManager()
-
-
Method Details
-
authenticate
- Specified by:
authenticatein interfaceSecurityManager- Returns:
- - some object representing the user to associate with the request
-
authenticate
Description copied from interface:SecurityManagerAuthenticate a digest request- Specified by:
authenticatein interfaceSecurityManager- Returns:
- See Also:
-
authorise
Description copied from interface:SecurityManagerCheck that the authenticater user can access the given resource for the given method.- Specified by:
authorisein interfaceSecurityManager- 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
- Specified by:
getRealmin interfaceSecurityManager- Returns:
- - the name of the security realm this is managing
-
setRealm
-
isDigestAllowed
public boolean isDigestAllowed()- Specified by:
isDigestAllowedin interfaceSecurityManager
-