public final class AuthCodeHandler extends Object implements IAuthorizeHandler
| Modifier and Type | Class and Description |
|---|---|
static class |
AuthCodeHandler.Binder
HK2 Binder for our injector context.
|
| Constructor and Description |
|---|
AuthCodeHandler(org.glassfish.jersey.internal.inject.InjectionManager injector,
org.hibernate.Session session,
javax.ws.rs.core.UriInfo uriInfo)
Create a new handler.
|
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
callback(AuthenticatorState s,
javax.servlet.http.HttpSession browserSession)
Handle a callback response from the IdP (Authenticator).
|
IAuthenticator |
getAuthenticator(AuthenticatorState state)
Provided a stored intermediate authenticator state, attempt to resolve
an instance of the associated authenticator implementation.
|
javax.ws.rs.core.Response |
handle(javax.servlet.http.HttpSession browserSession,
Authenticator auth,
URI redirect,
SortedMap<String,ApplicationScope> scopes,
String state)
Handle an authorization request using the Auth Code flow.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbuildCallback@Inject
public AuthCodeHandler(org.glassfish.jersey.internal.inject.InjectionManager injector,
org.hibernate.Session session,
@Context
javax.ws.rs.core.UriInfo uriInfo)
injector - The injection manager.session - The hibernate session.uriInfo - The URI info for the current request.public IAuthenticator getAuthenticator(AuthenticatorState state)
getAuthenticator in interface IAuthorizeHandlerstate - The state to resolve.public javax.ws.rs.core.Response handle(javax.servlet.http.HttpSession browserSession,
Authenticator auth,
URI redirect,
SortedMap<String,ApplicationScope> scopes,
String state)
handle in interface IAuthorizeHandlerbrowserSession - The browser session, maintained via cookies.auth - The authenticator to use to process this
request.redirect - The redirect (already validated) to which
the response should be returned.scopes - The (validated) list of scopes requested by
the user.state - The client's requested state ID.public javax.ws.rs.core.Response callback(AuthenticatorState s, javax.servlet.http.HttpSession browserSession)
callback in interface IAuthorizeHandlers - The request state previously saved by the client.browserSession - The browser session, maintained via cookies.Copyright © 2018 krotscheck.net. All rights reserved.