Class SsaCreateAction


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

      Constructors 
      Constructor Description
      SsaCreateAction()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      jakarta.ws.rs.core.Response create​(java.lang.String requestParams, jakarta.servlet.http.HttpServletRequest httpRequest)
      Creates an SSA from the requested parameters.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SsaCreateAction

        public SsaCreateAction()
    • Method Detail

      • create

        public jakarta.ws.rs.core.Response create​(java.lang.String requestParams,
                                                  jakarta.servlet.http.HttpServletRequest httpRequest)
        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.