org.keycloak.keys

## Interface KeyProvider

- All Superinterfaces:
    Provider
  All Known Implementing Classes:
    AbstractEcdsaKeyProvider, AbstractGeneratedSecretKeyProvider, AbstractRsaKeyProvider, GeneratedAesKeyProvider, GeneratedEcdsaKeyProvider, GeneratedHmacKeyProvider, ImportedRsaKeyProvider, JavaKeystoreKeyProvider

      public interface KeyProvider
      extends Provider

  Author:
    Stian Thorgersen

- - ### Method Summary

    All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods
    Modifier and Type | Method and Description
    --- | ---
    `default void` | `close()`
    `default List<KeyWrapper>` | `getKeys()` Deprecated. Use `getKeysStream` instead.
    `Stream<KeyWrapper>` | `getKeysStream()` Returns the `KeyWrapper` for a `KeyProvider`.

- - ### Method Detail

    - #### getKeys

          @Deprecated
          default List<KeyWrapper> getKeys()

      Deprecated. Use `getKeysStream` instead.
      Returns the `KeyWrapper` for a `KeyProvider`.
      Returns:
        Returns the `KeyWrapper` for a `KeyProvider`.

    - #### getKeysStream

          Stream<KeyWrapper> getKeysStream()

      Returns the `KeyWrapper` for a `KeyProvider`.
      Returns:
        Returns the `KeyWrapper` for a `KeyProvider`.

    - #### close

          default void close()

      Specified by:
        `close` in interface `Provider`

Copyright © 2020 JBoss by Red Hat. All rights reserved.