@Path(value="/accesstokens") public class AccessTokenResource extends RestResource
API_KEY_CLIENT_ID, API_KEY_TOKEN, API_KEY_USER, apiClientId, apiToken, apiUser, AUTHENTICATION_PARAM_NAME, hmacHeader, querySessionId, REMOTE_USER_ID, REMOTE_USER_TOKEN, remoteUserId, remoteUserToken, request, sessionId, WOR_PARTNER_TOKEN, worPartnerToken
Constructor and Description |
---|
AccessTokenResource() |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
create(AccountTransfer transfer)
Creates a new access token for the user referenced in the parameter, after the credentials
(username and password) are validated.
|
javax.ws.rs.core.Response |
deleteToken()
Invalidates the current session information.
|
javax.ws.rs.core.Response |
get()
Retrieve account information for user referenced by session id
|
javax.ws.rs.core.Response |
getWebPartner(String url)
Validates web of registries access token (api key)
|
addHeaders, getThisServer, getUserId, getUserId, getWebPartner, log, requireUserId, requireUserIdOrWebPartner, requireWebPartner, respond, respond, respond, respond
@POST @Produces(value="application/json") @Consumes(value="application/json") public javax.ws.rs.core.Response create(AccountTransfer transfer)
transfer
- wraps username and password@DELETE public javax.ws.rs.core.Response deleteToken()
@GET @Produces(value="application/json") public javax.ws.rs.core.Response get()
@GET @Path(value="/web") public javax.ws.rs.core.Response getWebPartner(@QueryParam(value="url") String url)
Copyright © 2017. All rights reserved.