com.bradmcevoy.http
Interface SecurityManager
- All Known Implementing Classes:
- NullSecurityManager, ReadOnlySecurityManager, SimpleSecurityManager
public interface SecurityManager
|
Method Summary |
java.lang.Object |
authenticate(DigestResponse digestRequest)
Authenticate a digest request
See com.bradmcevoy.http.http11.auth.DigestGenerator |
java.lang.Object |
authenticate(java.lang.String user,
java.lang.String password)
|
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. |
java.lang.String |
getRealm(java.lang.String host)
|
authenticate
java.lang.Object authenticate(DigestResponse digestRequest)
- Authenticate a digest request
See com.bradmcevoy.http.http11.auth.DigestGenerator
- Parameters:
digestRequest -
- Returns:
authenticate
java.lang.Object authenticate(java.lang.String user,
java.lang.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 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
java.lang.String getRealm(java.lang.String host)
- Parameters:
- - host - the host name which has been requested
- Returns:
- - the name of the security realm this is managing
Copyright © 2011. All Rights Reserved.