com.github.nagyesta.lowkeyvault.service.key.LifetimeActionTrigger Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lowkey-vault-app Show documentation
Show all versions of lowkey-vault-app Show documentation
Assembled application of Lowkey Vault.
The newest version!
package com.github.nagyesta.lowkeyvault.service.key;
import com.github.nagyesta.lowkeyvault.service.key.constants.LifetimeActionTriggerType;
import java.time.OffsetDateTime;
import java.time.Period;
public interface LifetimeActionTrigger {
Period timePeriod();
LifetimeActionTriggerType triggerType();
boolean shouldTrigger(OffsetDateTime created, OffsetDateTime expiry);
long rotateAfterDays(Period expiryPeriod);
}