Package io.jans.as.server.jwk.ws.rs
Class ArchivedJwksService
- java.lang.Object
-
- io.jans.as.server.jwk.ws.rs.ArchivedJwksService
-
@Named public class ArchivedJwksService extends Object
- Author:
- Yuriy Z
-
-
Field Summary
Fields Modifier and Type Field Description static int
SECONDS_IN_ONE_YEAR
-
Constructor Summary
Constructors Constructor Description ArchivedJwksService()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
archiveJwk(org.json.JSONObject keyAsJson)
void
archiveRemovedKeys(org.json.JSONObject existingJwks, org.json.JSONObject newJwks)
String
buildDn(String id)
static Map<String,org.json.JSONObject>
createKidToKeyMap(org.json.JSONObject jwks)
Map<String,org.json.JSONObject>
findRemovedKeys(org.json.JSONObject existingJwks, org.json.JSONObject newJwks)
io.jans.as.common.model.common.ArchivedJwk
getArchivedJwk(String kid)
io.jans.as.common.model.common.ArchivedJwk
getArchivedJwkByDn(String dn)
int
getLifetimeInSeconds()
void
merge(io.jans.as.common.model.common.ArchivedJwk entity)
void
persist(io.jans.as.common.model.common.ArchivedJwk entity)
jakarta.ws.rs.core.Response
requestArchivedKid(String kid)
-
-
-
Field Detail
-
SECONDS_IN_ONE_YEAR
public static final int SECONDS_IN_ONE_YEAR
- See Also:
- Constant Field Values
-
-
Method Detail
-
getArchivedJwkByDn
public io.jans.as.common.model.common.ArchivedJwk getArchivedJwkByDn(String dn)
-
requestArchivedKid
public jakarta.ws.rs.core.Response requestArchivedKid(String kid)
-
getArchivedJwk
public io.jans.as.common.model.common.ArchivedJwk getArchivedJwk(String kid)
-
persist
public void persist(io.jans.as.common.model.common.ArchivedJwk entity)
-
merge
public void merge(io.jans.as.common.model.common.ArchivedJwk entity)
-
archiveJwk
public void archiveJwk(org.json.JSONObject keyAsJson)
-
getLifetimeInSeconds
public int getLifetimeInSeconds()
-
findRemovedKeys
public Map<String,org.json.JSONObject> findRemovedKeys(org.json.JSONObject existingJwks, org.json.JSONObject newJwks)
-
archiveRemovedKeys
public void archiveRemovedKeys(org.json.JSONObject existingJwks, org.json.JSONObject newJwks)
-
-