public class AuthorizationFinishPost extends java.lang.Object implements ControllerMethod
Note that after this authorization code is generated, it's only valid to generate keys for up to 10 minutes.
See also RFC 6749 Section 4.1.2
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
AUTH_FINISH_PATH |
Constructor and Description |
---|
AuthorizationFinishPost(java.util.function.Function<javax.servlet.http.HttpServletRequest,HttpServletRequestHelper> requestWrapper,
java.util.function.Supplier<CodeService> codeServiceSupplier,
java.util.function.Supplier<UrlFactory> urlFactorySupplier) |
Modifier and Type | Method and Description |
---|---|
void |
handle(javax.servlet.http.HttpServletRequest baseRequest,
javax.servlet.http.HttpServletResponse response)
Note that the "matches" method pretty much just checks the path, because
we validate most of the request here.
|
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 AUTH_FINISH_PATH
public AuthorizationFinishPost(java.util.function.Function<javax.servlet.http.HttpServletRequest,HttpServletRequestHelper> requestWrapper, java.util.function.Supplier<CodeService> codeServiceSupplier, java.util.function.Supplier<UrlFactory> urlFactorySupplier)
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
We need several
handle
in interface ControllerMethod
request
- The HttpServletRequest that should indicate most of our input dataresponse
- The response object to write out tojava.io.IOException
javax.servlet.ServletException