public class ReadOnlySecurityManager extends Object implements SecurityManager
| Constructor and Description |
|---|
ReadOnlySecurityManager() |
ReadOnlySecurityManager(String realm) |
| Modifier and Type | Method and Description |
|---|---|
Object |
authenticate(DigestResponse digestRequest)
Authenticate a digest request
See com.bradmcevoy.http.http11.auth.DigestGenerator
|
Object |
authenticate(String user,
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.
|
String |
getRealm(String host)
Will return the configured realm if it is not null.
|
boolean |
isDigestAllowed() |
public ReadOnlySecurityManager(String realm)
public ReadOnlySecurityManager()
public Object authenticate(String user, String password)
authenticate in interface SecurityManagerpublic Object authenticate(DigestResponse digestRequest)
SecurityManagerauthenticate in interface SecurityManagerpublic boolean authorise(Request request, Request.Method method, Auth auth, Resource resource)
SecurityManagerauthorise in interface SecurityManagerrequest - - the request itselfmethod - - the request methodauth - - authentication object representing the current userresource - - the resource being operated onpublic String getRealm(String host)
getRealm in interface SecurityManagerhost - - the requested host namepublic boolean isDigestAllowed()
isDigestAllowed in interface SecurityManagerCopyright © 2021 McEvoy Software Ltd. All rights reserved.