public interface DataSealerKeyStrategy
DataSealer class,
this principally abstracts methods of handling key versioning moreso than actual
access to keys, by optimizing access to keys in accordance with the manner in which
key rollover is handled.
Implementations are expected to guarantee good performance for access to a current "default" key, and may offer less performance on access to non-default keys.
@Nonnull Pair<String,SecretKey> getDefaultKey() throws KeyException
KeyException - if the key cannot be returned@Nonnull SecretKey getKey(@Nonnull@NotEmpty String name) throws KeyException
name - name of the key to retrieveKeyException - if the key cannot be returned, does not exist, etc.Copyright © 1999–2019 Shibboleth Consortium. All rights reserved.