All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.nagyesta.lowkeyvault.service.key.LifetimeActionTrigger Maven / Gradle / Ivy

There is a newer version: 2.5.81
Show 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);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy