Package io.jans.as.server.ssa.ws.rs
Class SsaRestWebServiceImpl
- java.lang.Object
-
- io.jans.as.server.ssa.ws.rs.SsaRestWebServiceImpl
-
- All Implemented Interfaces:
SsaRestWebService
@Path("/") public class SsaRestWebServiceImpl extends java.lang.Object implements SsaRestWebService
Implements all methods of theSsaRestWebService
interface.
-
-
Constructor Summary
Constructors Constructor Description SsaRestWebServiceImpl()
-
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.jakarta.ws.rs.core.Response
get(java.lang.String jti, java.lang.Long orgId, jakarta.servlet.http.HttpServletRequest httpRequest)
Get existing active SSA based on "jti" or "org_id".jakarta.ws.rs.core.Response
revoke(java.lang.String jti, java.lang.Long orgId, jakarta.servlet.http.HttpServletRequest httpRequest)
Revoked existing active SSA based on "jti" or "org_id".jakarta.ws.rs.core.Response
validate(java.lang.String jti)
Validate existing active SSA based on "jti".
-
-
-
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 calls the action where the SSA creation logic is implemented.
- Specified by:
create
in interfaceSsaRestWebService
- Parameters:
requestParams
- Valid jsonhttpRequest
- Http request object- Returns:
Response
with status201
(Created) and with body the ssa token (jwt).
-
get
public jakarta.ws.rs.core.Response get(java.lang.String jti, java.lang.Long orgId, jakarta.servlet.http.HttpServletRequest httpRequest)
Get existing active SSA based on "jti" or "org_id".Method calls the action where the SSA get logic is implemented.
- Specified by:
get
in interfaceSsaRestWebService
- Parameters:
jti
- Unique identifierorgId
- Organization IDhttpRequest
- Http request- Returns:
Response
with status200 (Ok)
and with body List of SSA.
-
validate
public jakarta.ws.rs.core.Response validate(java.lang.String jti)
Validate existing active SSA based on "jti".Method calls the action where the SSA validate logic is implemented.
- Specified by:
validate
in interfaceSsaRestWebService
- Parameters:
jti
- Unique identifier- Returns:
Response
with status200
(Ok) if SSA has been validated.
-
revoke
public jakarta.ws.rs.core.Response revoke(java.lang.String jti, java.lang.Long orgId, jakarta.servlet.http.HttpServletRequest httpRequest)
Revoked existing active SSA based on "jti" or "org_id".Method calls the action where the SSA revoke logic is implemented.
- Specified by:
revoke
in interfaceSsaRestWebService
- Parameters:
jti
- Unique identifierorgId
- Organization IDhttpRequest
- Http request- Returns:
Response
with status200 (Ok)
if SSA has been revoked.
-
-