Interface SsaRestWebService

All Known Implementing Classes:
SsaRestWebServiceImpl

public interface SsaRestWebService
Interface to handle all SSA REST web services.
  • Method Summary

    Modifier and Type
    Method
    Description
    jakarta.ws.rs.core.Response
    create(String requestParams, jakarta.servlet.http.HttpServletRequest httpRequest)
    Create SSA for the organization with "expiration" (optional).
    jakarta.ws.rs.core.Response
    get(String jti, String orgId, jakarta.servlet.http.HttpServletRequest httpRequest)
    Get list of SSA based on "jti" or "org_id" filter.
    jakarta.ws.rs.core.Response
    Get JWT from existing active SSA based on "jti".
    jakarta.ws.rs.core.Response
    revoke(String jti, String orgId, jakarta.servlet.http.HttpServletRequest httpRequest)
    Revokes existing active SSA based on "jti" or "org_id".
    jakarta.ws.rs.core.Response
    Validate existing active SSA based on "jti".
  • Method Details

    • create

      @POST @Path("/ssa") @Produces("application/json") jakarta.ws.rs.core.Response create(String requestParams, @Context jakarta.servlet.http.HttpServletRequest httpRequest)
      Create SSA for the organization with "expiration" (optional).
      Parameters:
      requestParams - Valid json
      httpRequest - Http request object
      Returns:
      Response with status 201 (Created) and with body the ssa token, or with status 401 (Unauthorized) if unauthorized access request, or with status 500 (Internal Server Error) if internal error occurred.
    • get

      @GET @Path("/ssa") @Produces("application/json") jakarta.ws.rs.core.Response get(@QueryParam("jti") String jti, @QueryParam("org_id") String orgId, @Context jakarta.servlet.http.HttpServletRequest httpRequest)
      Get list of SSA based on "jti" or "org_id" filter.
      Parameters:
      jti - Unique identifier
      orgId - Organization ID
      httpRequest - Http request
      Returns:
      the Response with status 200 (Ok) and with body the ssa list, or with status 401 (Unauthorized) if unauthorized access request, or with status 500 (Internal Server Error) if internal error occurred.
    • validate

      @POST @Path("/ssa/validation") @Produces("application/json") jakarta.ws.rs.core.Response validate(@HeaderParam("jti") String jti)
      Validate existing active SSA based on "jti".
      Parameters:
      jti - Unique identifier
      Returns:
      Response with status 200 (Ok) if is was validated successfully, or with status 401 (Unauthorized) if unauthorized access request, or with status 400 (Bad Request) with <b>invalid_jti<b/> key, when jti does not exist, is invalid or state is in (expired, used or revoked), or with status 500 (Internal Server Error) if internal error occurred.
    • revoke

      @DELETE @Path("/ssa") @Produces("application/json") jakarta.ws.rs.core.Response revoke(@QueryParam("jti") String jti, @QueryParam("org_id") String orgId, @Context jakarta.servlet.http.HttpServletRequest httpRequest)
      Revokes existing active SSA based on "jti" or "org_id".
      Parameters:
      jti - Unique identifier
      orgId - Organization ID
      httpRequest - Http request
      Returns:
      the Response with status 200 (Ok) if it was revoked successfully, or with status 401 (Unauthorized) if unauthorized access request, or with status 500 (Internal Server Error) if internal error occurred.
    • getSsaJwtByJti

      @GET @Path("/ssa/jwt") @Produces("application/json") jakarta.ws.rs.core.Response getSsaJwtByJti(@QueryParam("jti") String jti)
      Get JWT from existing active SSA based on "jti".
      Parameters:
      jti - Unique identifier
      Returns:
      Response with status 200 (Ok) and the body containing JWT of SSA. or with status 401 if this functionality is not enabled, request has to have at least scope "ssa.admin", or with status 403 if the SSA does not exist, is expired or used, or with status 500 in case an uncontrolled error occurs when processing the method.