Class SsaCreateAction


  • @Named
    public class SsaCreateAction
    extends Object
    Provides required methods to create a new SSA considering all required conditions.
    • Constructor Detail

      • SsaCreateAction

        public SsaCreateAction()
    • Method Detail

      • create

        public jakarta.ws.rs.core.Response create​(String requestParams,
                                                  jakarta.servlet.http.HttpServletRequest httpRequest)
                                           throws jakarta.ws.rs.WebApplicationException
        Creates an SSA from the requested parameters.

        Method will return a WebApplicationException with status 401 if this functionality is not enabled, request has to have at least scope "ssa.admin", it will also return a WebApplicationException with status 500 in case an uncontrolled error occurs when processing the method.

        Response of this method can be modified using the following custom script SSA Custom Script, method create.

        SSA returned by this method is stored in the corresponding database, so it can be later retrieved, validated or revoked.

        Parameters:
        requestParams - Valid json request
        httpRequest - Http request
        Returns:
        Response with status 201 (Created) and response body containing the SSA in JWT format.
        Throws:
        jakarta.ws.rs.WebApplicationException