com.ettrema.http.fs
Class NullSecurityManager
java.lang.Object
com.ettrema.http.fs.NullSecurityManager
- All Implemented Interfaces:
- SecurityManager
public class NullSecurityManager
- extends java.lang.Object
- implements 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)
|
void |
setRealm(java.lang.String realm)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NullSecurityManager
public NullSecurityManager()
authenticate
public java.lang.Object authenticate(java.lang.String user,
java.lang.String password)
- Specified by:
authenticate in interface SecurityManager
- Returns:
- - some object representing the user to associate with the request
authenticate
public java.lang.Object authenticate(DigestResponse digestRequest)
- Description copied from interface:
SecurityManager
- Authenticate a digest request
See com.bradmcevoy.http.http11.auth.DigestGenerator
- Specified by:
authenticate in interface SecurityManager
- Returns:
authorise
public boolean authorise(Request request,
Request.Method method,
Auth auth,
Resource resource)
- Description copied from interface:
SecurityManager
- Check that the authenticater user can access the given resource for the
given method.
- Specified by:
authorise in interface SecurityManager
- 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
public java.lang.String getRealm(java.lang.String host)
- Specified by:
getRealm in interface SecurityManager
- Returns:
- - the name of the security realm this is managing
setRealm
public void setRealm(java.lang.String realm)
Copyright © 2011. All Rights Reserved.