@Provider public class Challenger extends Object implements org.jboss.resteasy.spi.interception.PreProcessInterceptor
Constructor and Description |
---|
Challenger() |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
getChallenge()
Issue 401 challenge on missing or invalid credentials.
|
org.jboss.resteasy.core.ServerResponse |
preProcess(org.jboss.resteasy.spi.HttpRequest request,
org.jboss.resteasy.core.ResourceMethod method) |
void |
setCurrent(Current current) |
void |
setRealm(String realm) |
void |
setScheme(Scheme scheme) |
void |
setValidator(Validator validator) |
protected boolean |
validate(Principal principal)
By default principal validation is lazy, with the assumption that this
will be initiated by the resource later on the dispatch path.
|
public void setRealm(String realm)
public void setScheme(Scheme scheme)
public void setValidator(Validator validator)
public void setCurrent(Current current)
public javax.ws.rs.core.Response getChallenge()
public org.jboss.resteasy.core.ServerResponse preProcess(org.jboss.resteasy.spi.HttpRequest request, org.jboss.resteasy.core.ResourceMethod method) throws org.jboss.resteasy.spi.Failure, javax.ws.rs.WebApplicationException
preProcess
in interface org.jboss.resteasy.spi.interception.PreProcessInterceptor
org.jboss.resteasy.spi.Failure
javax.ws.rs.WebApplicationException
protected boolean validate(Principal principal)
principal
- the decoded principalCopyright © 2012. All Rights Reserved.