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, wait
getOrSendError
public 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)
ControllerMethod
matches
in interface ControllerMethod
baseRequest
- 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
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
ControllerMethod.handle(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)