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 Object implements SsaRestWebServiceImplements all methods of theSsaRestWebServiceinterface.
-
-
Constructor Summary
Constructors Constructor Description SsaRestWebServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description jakarta.ws.rs.core.Responsecreate(String requestParams, jakarta.servlet.http.HttpServletRequest httpRequest)Creates an SSA from the requested parameters.jakarta.ws.rs.core.Responseget(String jti, String orgId, jakarta.servlet.http.HttpServletRequest httpRequest)Get existing active SSA based on "jti" or "org_id".jakarta.ws.rs.core.ResponsegetSsaJwtByJti(String jti)Get JWT from existing active SSA based on "jti".jakarta.ws.rs.core.Responserevoke(String jti, String orgId, jakarta.servlet.http.HttpServletRequest httpRequest)Revoked existing active SSA based on "jti" or "org_id".jakarta.ws.rs.core.Responsevalidate(String jti)Validate existing active SSA based on "jti".
-
-
-
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 calls the action where the SSA creation logic is implemented.
- Specified by:
createin interfaceSsaRestWebService- Parameters:
requestParams- Valid jsonhttpRequest- Http request object- Returns:
Responsewith status201(Created) and with body the ssa token (jwt).
-
get
public jakarta.ws.rs.core.Response get(String jti, String 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:
getin interfaceSsaRestWebService- Parameters:
jti- Unique identifierorgId- Organization IDhttpRequest- Http request- Returns:
Responsewith status200 (Ok)and with body List of SSA.
-
validate
public jakarta.ws.rs.core.Response validate(String jti)
Validate existing active SSA based on "jti".Method calls the action where the SSA validate logic is implemented.
- Specified by:
validatein interfaceSsaRestWebService- Parameters:
jti- Unique identifier- Returns:
Responsewith status200(Ok) if SSA has been validated.
-
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 calls the action where the SSA revoke logic is implemented.
- Specified by:
revokein interfaceSsaRestWebService- Parameters:
jti- Unique identifierorgId- Organization IDhttpRequest- Http request- Returns:
Responsewith status200 (Ok)if SSA has been revoked.
-
getSsaJwtByJti
public jakarta.ws.rs.core.Response getSsaJwtByJti(String jti)
Get JWT from existing active SSA based on "jti".Method will return the following exceptions: -
WebApplicationExceptionwith status401if this functionality is not enabled, request has to have at least scope "ssa.admin". -WebApplicationExceptionwith status400 (Bad Request) with <b>invalid_jti<b/> key, when jti does not exist, is invalid or state is in (expired, used or revoked). -WebApplicationExceptionwith status500in case an uncontrolled error occurs when processing the method.- Specified by:
getSsaJwtByJtiin interfaceSsaRestWebService- Parameters:
jti- Unique identifier- Returns:
Responsewith status200 (Ok)and the body containing JWT of SSA.
-
-