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 |
---|---|
@NonNull StsClientState |
getCurrentState()
Returns the current state in the enum that the
state machine is operating in.
|
@NonNull StsStorageManager |
getStorageManager()
Gets the persistence/storage manager.
|
void |
setCurrentState(@NonNull StsClientState newState)
Changes the state of the FSM, triggering any state-specific work.
|
void |
setStsPolicy(@NonNull 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()
void setStsPolicy(@NonNull StsPolicy policy)
It is expected the policy is valid at this stage.
policy
- the valid STS policyCopyright © 2013–2021 Kitteh. All rights reserved.