org.keycloak.keys

## Class GeneratedHmacKeyProviderFactory

- java.lang.Object
- - org.keycloak.keys.AbstractGeneratedSecretKeyProviderFactory<GeneratedHmacKeyProvider>
  - - org.keycloak.keys.GeneratedHmacKeyProviderFactory

- All Implemented Interfaces:
    ComponentFactory<GeneratedHmacKeyProvider,KeyProvider>, KeyProviderFactory<GeneratedHmacKeyProvider>, ConfiguredProvider, ProviderFactory<KeyProvider>

      public class GeneratedHmacKeyProviderFactory
      extends AbstractGeneratedSecretKeyProviderFactory<GeneratedHmacKeyProvider>

  Author:
    Stian Thorgersen

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static int` | `DEFAULT_HMAC_KEY_SIZE`
    `static String` | `ID`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `GeneratedHmacKeyProviderFactory()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `GeneratedHmacKeyProvider` | `create(KeycloakSession session, ComponentModel model)`
    `boolean` | `createFallbackKeys(KeycloakSession session, KeyUse keyUse, String algorithm)`
    `List<ProviderConfigProperty>` | `getConfigProperties()`
    `protected int` | `getDefaultKeySize()`
    `String` | `getHelpText()`
    `String` | `getId()`
    `protected org.jboss.logging.Logger` | `logger()`

    - ### Methods inherited from class org.keycloak.keys.AbstractGeneratedSecretKeyProviderFactory

      `validateConfiguration`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

    - ### Methods inherited from interface org.keycloak.keys.KeyProviderFactory

      `close, init, postInit`

    - ### Methods inherited from interface org.keycloak.component.ComponentFactory

      `create, getCommonProviderConfigProperties, getTypeMetadata, onCreate, onUpdate, preRemove`

    - ### Methods inherited from interface org.keycloak.provider.ProviderFactory

      `order`

- - ### Field Detail

    - #### ID

          public static final String ID

      See Also:
        Constant Field Values

    - #### DEFAULT_HMAC_KEY_SIZE

          public static final int DEFAULT_HMAC_KEY_SIZE

      See Also:
        Constant Field Values

  - ### Constructor Detail

    - #### GeneratedHmacKeyProviderFactory

          public GeneratedHmacKeyProviderFactory()

  - ### Method Detail

    - #### create

          public GeneratedHmacKeyProvider create(KeycloakSession session,
                                                 ComponentModel model)

    - #### createFallbackKeys

          public boolean createFallbackKeys(KeycloakSession session,
                                            KeyUse keyUse,
                                            String algorithm)

    - #### getHelpText

          public String getHelpText()

    - #### getConfigProperties

          public List<ProviderConfigProperty> getConfigProperties()

    - #### getId

          public String getId()

    - #### logger

          protected org.jboss.logging.Logger logger()

      Specified by:
        `logger` in class `AbstractGeneratedSecretKeyProviderFactory<GeneratedHmacKeyProvider>`

    - #### getDefaultKeySize

          protected int getDefaultKeySize()

      Specified by:
        `getDefaultKeySize` in class `AbstractGeneratedSecretKeyProviderFactory<GeneratedHmacKeyProvider>`

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