public class AuthorizationStartGet extends java.lang.Object implements ControllerMethod
Note that this mechanism REQUIRES a whitelisted redirect URL.
See also rfc6749 section 4.1.1
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
AUTH_CODE_PATH |
| Constructor and Description |
|---|
AuthorizationStartGet(java.util.function.Function<javax.servlet.http.HttpServletRequest,HttpServletRequestHelper> requestWrapper,
java.util.function.Supplier<CodeService> codeService,
java.util.function.Supplier<UrlFactory> urlFactory) |
| 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, waitgetOrSendErrorpublic static final java.lang.String AUTH_CODE_PATH
public AuthorizationStartGet(java.util.function.Function<javax.servlet.http.HttpServletRequest,HttpServletRequestHelper> requestWrapper, java.util.function.Supplier<CodeService> codeService, java.util.function.Supplier<UrlFactory> urlFactory)
public boolean matches(javax.servlet.http.HttpServletRequest baseRequest)
ControllerMethodmatches in interface ControllerMethodbaseRequest - The HttpServletRequest to checkControllerMethod.matches(javax.servlet.http.HttpServletRequest)public void handle(javax.servlet.http.HttpServletRequest baseRequest,
javax.servlet.http.HttpServletResponse response)
throws java.io.IOException,
javax.servlet.ServletException
ControllerMethodhandle in interface ControllerMethodbaseRequest - The HttpServletRequest that should indicate most of our input dataresponse - The response object to write out tojava.io.IOExceptionjavax.servlet.ServletExceptionControllerMethod.handle(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)