public final class OwnerCredentialsGrantHandler extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
OwnerCredentialsGrantHandler.Binder
HK2 Binder for our injector context.
|
| Constructor and Description |
|---|
OwnerCredentialsGrantHandler(org.hibernate.Session session,
javax.ws.rs.core.UriInfo uriInfo,
org.glassfish.jersey.internal.inject.InjectionManager injector)
Create a new instance of this token handler.
|
| Modifier and Type | Method and Description |
|---|---|
TokenResponseEntity |
handle(Client client,
String scope,
String state,
String username,
String password)
Apply the client credentials flow to this request.
|
@Inject
public OwnerCredentialsGrantHandler(org.hibernate.Session session,
@Context
javax.ws.rs.core.UriInfo uriInfo,
org.glassfish.jersey.internal.inject.InjectionManager injector)
session - Injected hibernate session.uriInfo - The URI info for the current request.injector - The injection manager.public TokenResponseEntity handle(Client client, String scope, String state, String username, String password)
client - The Client to use.scope - The requested scopes.state - The state.username - The user name.password - The password.Copyright © 2018 krotscheck.net. All rights reserved.