Package org.apache.cxf.sts.rest
Interface RESTSecurityTokenService
- All Known Implementing Classes:
RESTSecurityTokenServiceImpl
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptiongetToken(RESTSecurityTokenService.Action action, RequestSecurityTokenType request) getXMLToken(String tokenType, String keyType, List<String> requestedClaims, String appliesTo, boolean wstrustResponse) removeToken(RequestSecurityTokenType request) Same asgetToken(Action, RequestSecurityTokenType)with 'cancel' action.
-
Method Details
-
getXMLToken
@GET @Path("{tokenType}") @Produces("application/xml") Response getXMLToken(@PathParam("tokenType") String tokenType, @QueryParam("keyType") String keyType, @QueryParam("claim") List<String> requestedClaims, @QueryParam("appliesTo") String appliesTo, @QueryParam("wstrustResponse") @DefaultValue("false") boolean wstrustResponse) - Returns:
- Issues required token type with default token settings.
-
getJSONToken
@GET @Path("{tokenType}") @Produces("application/json;qs=0.8") Response getJSONToken(@PathParam("tokenType") @DefaultValue("jwt") String tokenType, @QueryParam("keyType") String keyType, @QueryParam("claim") List<String> requestedClaims, @QueryParam("appliesTo") String appliesTo) -
getPlainToken
@GET @Path("{tokenType}") @Produces("text/plain;qs=0.9") Response getPlainToken(@PathParam("tokenType") String tokenType, @QueryParam("keyType") String keyType, @QueryParam("claim") List<String> requestedClaims, @QueryParam("appliesTo") String appliesTo) -
getToken
@POST @Produces({"application/xml","application/json"}) Response getToken(@QueryParam("action") @DefaultValue("issue") RESTSecurityTokenService.Action action, RequestSecurityTokenType request) -
removeToken
@DELETE @Path("/") @Produces({"application/xml","application/json"}) Response removeToken(RequestSecurityTokenType request) Same asgetToken(Action, RequestSecurityTokenType)with 'cancel' action.- Parameters:
request-- Returns:
-
getKeyExchangeToken
@POST @Path("KeyExchangeToken") @Produces({"application/xml","application/json"}) Response getKeyExchangeToken(RequestSecurityTokenType request)
-