public interface StsStorageManager
Modifier and Type | Method and Description |
---|---|
void |
addEntry(String hostname,
long duration,
StsPolicy policy)
Adds an STS policy to the store.
|
Optional<StsPolicy> |
getEntry(String hostname)
Gets an STS policy from the store, looking it up via hostname.
|
boolean |
hasEntry(String hostname)
Checks if a policy has been stored for the hostname.
|
void |
removeEntry(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 checkCopyright © 2013–2019 Kitteh. All rights reserved.