Package io.jans.as.server.service.token
Class StatusListService
- java.lang.Object
-
- io.jans.as.server.service.token.StatusListService
-
@ApplicationScoped public class StatusListService extends Object
- Author:
- Yuriy Z
-
-
Constructor Summary
Constructors Constructor Description StatusListService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddStatusClaimWithIndex(io.jans.as.model.token.JsonWebResponse jwr, ExecutionContext executionContext)StringcreateResponseJwt(org.json.JSONObject response)voidfillPayload(io.jans.as.model.token.JsonWebResponse jwr, org.json.JSONObject response)StringgetSub()Returns sub of status list.io.jans.model.tokenstatus.StatusListjoin(List<io.jans.model.token.StatusIndexPool> pools)jakarta.ws.rs.core.ResponserequestStatusList(String acceptHeader)
-
-
-
Method Detail
-
requestStatusList
public jakarta.ws.rs.core.Response requestStatusList(String acceptHeader)
-
join
public io.jans.model.tokenstatus.StatusList join(List<io.jans.model.token.StatusIndexPool> pools)
-
addStatusClaimWithIndex
public void addStatusClaimWithIndex(io.jans.as.model.token.JsonWebResponse jwr, ExecutionContext executionContext)
-
getSub
public String getSub()
Returns sub of status list. It must be equal in both issued token jwt ("uri") and status list jwt ("sub").- Returns:
- Returns sub of status list
-
createResponseJwt
public String createResponseJwt(org.json.JSONObject response) throws Exception
- Throws:
Exception
-
fillPayload
public void fillPayload(io.jans.as.model.token.JsonWebResponse jwr, org.json.JSONObject response) throws io.jans.as.model.exception.InvalidJwtException- Throws:
io.jans.as.model.exception.InvalidJwtException
-
-