Class CredentialLifecycleService

java.lang.Object
com.svenruppert.jsentinel.credential.lifecycle.CredentialLifecycleService

public final class CredentialLifecycleService extends Object
Owns the lifecycle of stored credentials and the rules for moving between CredentialStatus values.

Decision side

decide(CredentialStatus) is a pure function: given a stored status, returns the adapter-neutral CredentialLifecycleDecision. No I/O, no audit.

Transition side

transition(String, CredentialStatus, CredentialStatus, String) checks the configured state machine, calls CredentialStore.updateStatusIfCurrent(String, CredentialStatus, CredentialStatus, Instant) for the CAS, and publishes CredentialStatusChanged on success. Disallowed transitions throw InvalidStatusTransitionException deterministically before touching the store (CWE-284 / CWE-778).