public class LdapSecurityManager extends Object implements SecurityManager
| Constructor and Description |
|---|
LdapSecurityManager() |
| 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 |
getLdapUrl() |
String |
getRealm(String host) |
boolean |
isDigestAllowed() |
boolean |
isEnableDigest() |
void |
setEnableDigest(boolean enableDigest) |
void |
setLdapUrl(String ldapUrl) |
void |
setRealm(String realm) |
public Object authenticate(DigestResponse digestRequest)
SecurityManagerauthenticate in interface SecurityManagerpublic Object authenticate(String user, String password)
authenticate 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 SecurityManagerpublic void setRealm(String realm)
public boolean isDigestAllowed()
isDigestAllowed in interface SecurityManagerpublic void setEnableDigest(boolean enableDigest)
public boolean isEnableDigest()
public String getLdapUrl()
public void setLdapUrl(String ldapUrl)
Copyright © 2021 McEvoy Software Ltd. All rights reserved.