@Path(value="/token")
public interface RESTSecurityTokenService
Modifier and Type | Interface and Description |
---|---|
static class |
RESTSecurityTokenService.Action |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
getJSONToken(String tokenType,
String keyType,
List<String> requestedClaims,
String appliesTo) |
javax.ws.rs.core.Response |
getKeyExchangeToken(RequestSecurityTokenType request) |
javax.ws.rs.core.Response |
getPlainToken(String tokenType,
String keyType,
List<String> requestedClaims,
String appliesTo) |
javax.ws.rs.core.Response |
getToken(RESTSecurityTokenService.Action action,
RequestSecurityTokenType request) |
javax.ws.rs.core.Response |
getXMLToken(String tokenType,
String keyType,
List<String> requestedClaims,
String appliesTo,
boolean wstrustResponse) |
javax.ws.rs.core.Response |
removeToken(RequestSecurityTokenType request)
Same as
getToken(Action, RequestSecurityTokenType) with 'cancel' action. |
@GET @Path(value="{tokenType}") @Produces(value="application/xml") javax.ws.rs.core.Response getXMLToken(@PathParam(value="tokenType") String tokenType, @QueryParam(value="keyType") String keyType, @QueryParam(value="claim") List<String> requestedClaims, @QueryParam(value="appliesTo") String appliesTo, @QueryParam(value="wstrustResponse") @DefaultValue(value="false") boolean wstrustResponse)
@GET @Path(value="{tokenType}") @Produces(value="application/json;qs=0.8") javax.ws.rs.core.Response getJSONToken(@PathParam(value="tokenType") @DefaultValue(value="jwt") String tokenType, @QueryParam(value="keyType") String keyType, @QueryParam(value="claim") List<String> requestedClaims, @QueryParam(value="appliesTo") String appliesTo)
@GET @Path(value="{tokenType}") @Produces(value="text/plain;qs=0.9") javax.ws.rs.core.Response getPlainToken(@PathParam(value="tokenType") String tokenType, @QueryParam(value="keyType") String keyType, @QueryParam(value="claim") List<String> requestedClaims, @QueryParam(value="appliesTo") String appliesTo)
@POST @Produces(value={"application/xml","application/json"}) javax.ws.rs.core.Response getToken(@QueryParam(value="action") @DefaultValue(value="issue") RESTSecurityTokenService.Action action, RequestSecurityTokenType request)
@DELETE @Path(value="/") @Produces(value={"application/xml","application/json"}) javax.ws.rs.core.Response removeToken(RequestSecurityTokenType request)
getToken(Action, RequestSecurityTokenType)
with 'cancel' action.request
- @POST @Path(value="KeyExchangeToken") @Produces(value={"application/xml","application/json"}) javax.ws.rs.core.Response getKeyExchangeToken(RequestSecurityTokenType request)
Apache CXF