Class SsaCreateAction
- java.lang.Object
-
- io.jans.as.server.ssa.ws.rs.action.SsaCreateAction
-
@Named public class SsaCreateAction extends 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(String requestParams, jakarta.servlet.http.HttpServletRequest httpRequest)
Creates an SSA from the requested parameters.
-
-
-
Method Detail
-
create
public jakarta.ws.rs.core.Response create(String requestParams, jakarta.servlet.http.HttpServletRequest httpRequest)
Creates an SSA from the requested parameters.Method will return a
WebApplicationException
with status401
if this functionality is not enabled, request has to have at least scope "ssa.admin", it will also return aWebApplicationException
with status500
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 requesthttpRequest
- Http request- Returns:
Response
with status201
(Created) and response body containing the SSA in JWT format.
-
-