Interface KeyRotationConfig

All Known Implementing Classes:
RotationConfig

public interface KeyRotationConfig
  • Method Summary

    Modifier and Type
    Method
    Description
    Required amount of `Valid` (usable both for encryption/decryption) in KeyStore per each type.
    For which key types rotation is enabled.
    Map<KeyType,de.adorsys.keymanagement.api.types.template.GeneratedKeyTemplate>
    Which algorithms are associated with a key - i.e.
    For how long key can be used for decryption/signature validation from the moment it appeared in KeyStore.
    For how long key should be valid (used for encryption/decryption) from the moment it appeared in KeyStore.
    Supplier<char[]>
    Key password protection within KeyStore.
    Supplier<char[]>
    KeyStore password protection.
  • Method Details

    • getCountValidByType

      Map<KeyType,Integer> getCountValidByType()
      Required amount of `Valid` (usable both for encryption/decryption) in KeyStore per each type.
    • getEnabledFor

      Collection<KeyType> getEnabledFor()
      For which key types rotation is enabled.
    • getKeyTemplate

      Map<KeyType,de.adorsys.keymanagement.api.types.template.GeneratedKeyTemplate> getKeyTemplate()
      Which algorithms are associated with a key - i.e. Secret key for AES-256 encryption.
    • getValidity

      Duration getValidity()
      For how long key should be valid (used for encryption/decryption) from the moment it appeared in KeyStore.
    • getLegacy

      Duration getLegacy()
      For how long key can be used for decryption/signature validation from the moment it appeared in KeyStore.
    • keyPassword

      Supplier<char[]> keyPassword()
      Key password protection within KeyStore.
    • keyStorePassword

      Supplier<char[]> keyStorePassword()
      KeyStore password protection.