|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bradmcevoy.http.AuthenticationService
public class AuthenticationService
| Nested Class Summary | |
|---|---|
static class |
AuthenticationService.AuthStatus
|
| Constructor Summary | |
|---|---|
AuthenticationService()
Creates with Basic and Digest handlers |
|
AuthenticationService(java.util.List<AuthenticationHandler> authenticationHandlers)
Creates a AuthenticationService using the given handlers. |
|
AuthenticationService(NonceProvider nonceProvider)
Creates basic and digest handlers with the given NonceProvider |
|
| Method Summary | |
|---|---|
AuthenticationService.AuthStatus |
authenticate(Resource resource,
Request request)
Looks for an AuthenticationHandler which supports the given resource and authorization header, and then returns the result of that handler's authenticate method. |
java.util.List<AuthenticationHandler> |
getAuthenticationHandlers()
|
java.util.List<java.lang.String> |
getChallenges(Resource resource,
Request request)
Generates a list of http authentication challenges, one for each supported authentication method, to be sent to the client. |
java.util.List<AuthenticationHandler> |
getExtraHandlers()
|
boolean |
isDisableBasic()
|
boolean |
isDisableDigest()
|
void |
setDisableBasic(boolean b)
|
void |
setDisableDigest(boolean b)
|
void |
setExtraHandlers(java.util.List<AuthenticationHandler> extraHandlers)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AuthenticationService(java.util.List<AuthenticationHandler> authenticationHandlers)
authenticationHandlers - public AuthenticationService(NonceProvider nonceProvider)
nonceProvider - public AuthenticationService()
| Method Detail |
|---|
public void setDisableBasic(boolean b)
public boolean isDisableBasic()
public void setDisableDigest(boolean b)
public boolean isDisableDigest()
public AuthenticationService.AuthStatus authenticate(Resource resource,
Request request)
resource - request -
public java.util.List<java.lang.String> getChallenges(Resource resource,
Request request)
resource - - the resoruce being requestedrequest - - the current request
public java.util.List<AuthenticationHandler> getAuthenticationHandlers()
public java.util.List<AuthenticationHandler> getExtraHandlers()
public void setExtraHandlers(java.util.List<AuthenticationHandler> extraHandlers)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||