Class SsaRevokeAction
- java.lang.Object
-
- io.jans.as.server.ssa.ws.rs.action.SsaRevokeAction
-
@Named public class SsaRevokeAction extends Object
Provides the method to revoke an existing SSA considering certain conditions.
-
-
Constructor Summary
Constructors Constructor Description SsaRevokeAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description jakarta.ws.rs.core.Responserevoke(String jti, String orgId, jakarta.servlet.http.HttpServletRequest httpRequest)Revoked existing active SSA based on "jti" or "org_id".
-
-
-
Method Detail
-
revoke
public jakarta.ws.rs.core.Response revoke(String jti, String orgId, jakarta.servlet.http.HttpServletRequest httpRequest)
Revoked existing active SSA based on "jti" or "org_id".Method will return a
WebApplicationExceptionwith status401if this functionality is not enabled, request has to have at least scope "ssa.admin",WebApplicationExceptionwith status406if "jti" or "org_id" filters are not valid,WebApplicationExceptionwith status422if the SSA does not exist, has expired or is no longer active, it will also return aWebApplicationExceptionwith status code500in case an uncontrolled error occurs when processing the method.After revoking the SSA, it calls custom script to perform an additional process. SSA Custom Script, method revoke.
Method updates the list of SSA and marks them as REVOKED in the database.
- Parameters:
jti- Unique identifierorgId- Organization IDhttpRequest- Http request- Returns:
Responsewith status200 (Ok)if SSA has been revoked.
-
-