@Path(value="/v2") @Singleton public class OauthService extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
OAUTH_TOKEN_GET_METHOD_NAME_REQUEST |
| Constructor and Description |
|---|
OauthService()
Since this is a singleton sub-service, there will be just one call to this constructor and one running thread
to clean up expired codes.
|
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
checkService() |
protected void |
finalize() |
javax.ws.rs.core.Response |
pushAuthCode(PushCodeBean bean) |
javax.ws.rs.core.Response |
tokenRequest(String clientId,
String clientSecret,
String redirectUri,
String code,
String grantType,
javax.servlet.http.HttpServletRequest request) |
public static final String OAUTH_TOKEN_GET_METHOD_NAME_REQUEST
public OauthService()
@GET @Path(value="check") @Produces(value="text/plain") public javax.ws.rs.core.Response checkService()
@POST @Consumes(value="application/json") @Produces(value="application/json") @Path(value="push-authentication-code") public javax.ws.rs.core.Response pushAuthCode(PushCodeBean bean)
@POST
@Consumes(value="application/x-www-form-urlencoded")
@Produces(value="application/json")
@Path(value="access-token")
public javax.ws.rs.core.Response tokenRequest(@FormParam(value="client_id")
String clientId,
@FormParam(value="client_secret")
String clientSecret,
@FormParam(value="redirect_uri")
String redirectUri,
@FormParam(value="code")
String code,
@FormParam(value="grant_type")
String grantType,
@Context
javax.servlet.http.HttpServletRequest request)
Copyright © 2019. All Rights Reserved.