Package org.apache.cxf.sts.rest
Interface RESTSecurityTokenService
-
- All Known Implementing Classes:
RESTSecurityTokenServiceImpl
@Path("/token") public interface RESTSecurityTokenService
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classRESTSecurityTokenService.Action
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ResponsegetJSONToken(String tokenType, String keyType, List<String> requestedClaims, String appliesTo)ResponsegetKeyExchangeToken(RequestSecurityTokenType request)ResponsegetPlainToken(String tokenType, String keyType, List<String> requestedClaims, String appliesTo)ResponsegetToken(RESTSecurityTokenService.Action action, RequestSecurityTokenType request)ResponsegetXMLToken(String tokenType, String keyType, List<String> requestedClaims, String appliesTo, boolean wstrustResponse)ResponseremoveToken(RequestSecurityTokenType request)Same asgetToken(Action, RequestSecurityTokenType)with 'cancel' action.
-
-
-
Method Detail
-
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)
-
-