public class AccessTokenPost extends java.lang.Object implements ControllerMethod
See also rfc6749 section 4.1.3
TODO Technically, this requires Basic authentication access.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ACCESS_TOKEN_PATH |
Constructor and Description |
---|
AccessTokenPost(java.util.function.Function<javax.servlet.http.HttpServletRequest,HttpServletRequestHelper> requestWrapper,
java.util.function.Supplier<CodeService> codeServiceSupplier) |
Modifier and Type | Method and Description |
---|---|
void |
handle(javax.servlet.http.HttpServletRequest baseRequest,
javax.servlet.http.HttpServletResponse response)
Executes the controller call, writing out (and closing) the response.
|
boolean |
matches(javax.servlet.http.HttpServletRequest baseRequest)
If this returns true, assume that this method should probably be called
back.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getOrSendError
public static final java.lang.String ACCESS_TOKEN_PATH
public AccessTokenPost(java.util.function.Function<javax.servlet.http.HttpServletRequest,HttpServletRequestHelper> requestWrapper, java.util.function.Supplier<CodeService> codeServiceSupplier)
public boolean matches(javax.servlet.http.HttpServletRequest baseRequest)
ControllerMethod
matches
in interface ControllerMethod
baseRequest
- The HttpServletRequest to checkpublic void handle(javax.servlet.http.HttpServletRequest baseRequest, javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException
ControllerMethod
handle
in interface ControllerMethod
baseRequest
- The HttpServletRequest that should indicate most of our input dataresponse
- The response object to write out tojava.io.IOException
javax.servlet.ServletException