public interface StsStorageManager
Modifier and Type | Method and Description |
---|---|
void |
addEntry(@NonNull String hostname,
long duration,
@NonNull StsPolicy policy)
Adds an STS policy to the store.
|
@NonNull Optional<StsPolicy> |
getEntry(@NonNull String hostname)
Gets an STS policy from the store, looking it up via hostname.
|
boolean |
hasEntry(@NonNull String hostname)
Checks if a policy has been stored for the hostname.
|
void |
removeEntry(@NonNull String hostname)
Deletes an entry from the store (used for 0 duration policies).
|
void addEntry(@NonNull String hostname, long duration, @NonNull StsPolicy policy)
Implementers MUST accept requests to add entries that already exist and overwrite the old entry.
hostname
- the hostname (as sent in the SNI by the client)duration
- the length (in seconds) until the expiry of this stored policypolicy
- the STS policy instance, including all data sent from the server@NonNull Optional<StsPolicy> getEntry(@NonNull String hostname)
hostname
- the hostname (as sent in the SNI by the client)boolean hasEntry(@NonNull String hostname)
hostname
- the hostname to checkvoid removeEntry(@NonNull String hostname)
Implementers MUST ignore requests to remove entries that do not exist.
hostname
- the hostname to remove the policy forCopyright © 2013–2021 Kitteh. All rights reserved.