public interface StsMachine
This is a finite state machine which represents the various states related to strict-transport security that the client can be in at any one time.
State changes are caused by the IRCd sending the appropriate capability data, or if a user manually initiates a change. Actions are automatically taken as a result of state transitions,
Modifier and Type | Method and Description |
---|---|
StsClientState |
getCurrentState()
Returns the current state in the enum that the
state machine is operating in.
|
StsStorageManager |
getStorageManager()
Gets the persistence/storage manager.
|
void |
setCurrentState(StsClientState newState)
Changes the state of the FSM, triggering any state-specific work.
|
void |
setStsPolicy(StsPolicy policy)
Provides a key->value map of options and list of flags, making up the STS policy.
|
@Nonnull StsClientState getCurrentState()
void setCurrentState(@Nonnull StsClientState newState)
newState
- a valid (non-UNKNOWN, non-null) state@Nonnull StsStorageManager getStorageManager()
Copyright © 2013–2019 Kitteh. All rights reserved.