Class ExpirationPolicy
- java.lang.Object
-
- app.coronawarn.server.common.persistence.service.common.ExpirationPolicy
-
public final class ExpirationPolicy extends Object
Refers to the time that needs to pass after a key's rolling period has passed, such that the key can be considered completely expired. This is a DPP policy enforced upon processes which involve publishing/distributing/sharing keys with other external systems.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getExpirationTime()
ChronoUnit
getTimeUnit()
static ExpirationPolicy
of(long timeValue, ChronoUnit timeUnit)
Get an instance of an expiration policy.
-
-
-
Method Detail
-
getExpirationTime
public long getExpirationTime()
-
getTimeUnit
public ChronoUnit getTimeUnit()
-
of
public static ExpirationPolicy of(long timeValue, ChronoUnit timeUnit)
Get an instance of an expiration policy.
-
-