@Path(value="/1/token") public class CoreTokenResource extends ResourceBase
ResourceBase.MimeType
BODY, STATUS_CODE, STATUS_MESSAGE
Constructor and Description |
---|
CoreTokenResource() |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
createToken(javax.ws.rs.core.HttpHeaders headers,
javax.servlet.http.HttpServletRequest request,
String msgBody)
Creates a token.
|
void |
deleteToken(javax.ws.rs.core.HttpHeaders headers,
javax.servlet.http.HttpServletRequest request,
String tokenId)
Deletes a token.
|
javax.ws.rs.core.Response |
readToken(javax.ws.rs.core.HttpHeaders headers,
javax.servlet.http.HttpServletRequest request,
String tokenId)
Reads token attributes.
|
String |
searchTokens(javax.ws.rs.core.HttpHeaders headers,
javax.servlet.http.HttpServletRequest request)
Searches tokens.
|
void |
updateToken(javax.ws.rs.core.HttpHeaders headers,
javax.servlet.http.HttpServletRequest request,
String tokenId,
String eTag,
String msgBody)
Updates a token.
|
createResponseJSONString, createResponseJSONString, createResponseJSONString, createStringResponseJSONString, getCaller, getLocalizedMessage, getSubject, getUserLocale, getWebApplicationException, getWebApplicationException, getWebApplicationException, getWebApplicationException, getWebApplicationException, toSubject, toSubject
@POST @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response createToken(@Context javax.ws.rs.core.HttpHeaders headers, @Context javax.servlet.http.HttpServletRequest request, String msgBody)
headers
- HTTPHeaders object of the request.request
- HTTPServletRequest object of the request.msgBody
- Message body containing the JSON-encoded token attributes.@GET @Produces(value="application/json") @Path(value="{token.id}") public javax.ws.rs.core.Response readToken(@Context javax.ws.rs.core.HttpHeaders headers, @Context javax.servlet.http.HttpServletRequest request, @PathParam(value="token.id") String tokenId)
headers
- HTTPHeaders object of the request.request
- HTTPServletRequest object of the request.tokenId
- token.id of the token to be retrieved.@PUT @Consumes(value="application/json") @Path(value="{token.id}") public void updateToken(@Context javax.ws.rs.core.HttpHeaders headers, @Context javax.servlet.http.HttpServletRequest request, @PathParam(value="token.id") String tokenId, @HeaderParam(value="If-Match") String eTag, String msgBody)
headers
- HTTPHeaders object of the request.request
- HTTPServletRequest object of the request.tokenId
- value of token.id in the request path parameter.eTag
- value of the If-Match header in the request.msgBody
- Message body containing the JSON-encoded token attributes.@DELETE @Path(value="{token.id}") public void deleteToken(@Context javax.ws.rs.core.HttpHeaders headers, @Context javax.servlet.http.HttpServletRequest request, @PathParam(value="token.id") String tokenId)
headers
- HTTPHeaders object of the request.request
- HTTPServletRequest object of the request.tokenId
- value of token.id in the request path parameter.@GET @Produces(value="application/json") public String searchTokens(@Context javax.ws.rs.core.HttpHeaders headers, @Context javax.servlet.http.HttpServletRequest request)
headers
- HTTPHeaders object of the request.request
- HTTPServletRequest object of the request.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.