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