Class SsaRevokeAction
- java.lang.Object
-
- io.jans.as.server.ssa.ws.rs.action.SsaRevokeAction
-
@Named public class SsaRevokeAction extends java.lang.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.Response
revoke(java.lang.String jti, java.lang.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(java.lang.String jti, java.lang.String orgId, jakarta.servlet.http.HttpServletRequest httpRequest)
Revoked existing active SSA based on "jti" or "org_id".Method will return a
WebApplicationException
with status401
if this functionality is not enabled, request has to have at least scope "ssa.admin",WebApplicationException
with status406
if "jti" or "org_id" filters are not valid,WebApplicationException
with status422
if the SSA does not exist, has expired or is no longer active, it will also return aWebApplicationException
with status code500
in 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:
Response
with status200 (Ok)
if SSA has been revoked.
-
-