Class OAuth2DeviceConfig

java.lang.Object
org.keycloak.models.OAuth2DeviceConfig
All Implemented Interfaces:
Serializable

public final class OAuth2DeviceConfig extends Object implements Serializable
Author:
Pedro Igor
See Also:
  • Field Details

    • DEFAULT_OAUTH2_DEVICE_CODE_LIFESPAN

      public static final int DEFAULT_OAUTH2_DEVICE_CODE_LIFESPAN
      See Also:
    • DEFAULT_OAUTH2_DEVICE_POLLING_INTERVAL

      public static final int DEFAULT_OAUTH2_DEVICE_POLLING_INTERVAL
      See Also:
    • OAUTH2_DEVICE_CODE_LIFESPAN

      public static String OAUTH2_DEVICE_CODE_LIFESPAN
    • OAUTH2_DEVICE_POLLING_INTERVAL

      public static String OAUTH2_DEVICE_POLLING_INTERVAL
    • OAUTH2_DEVICE_CODE_LIFESPAN_PER_CLIENT

      public static String OAUTH2_DEVICE_CODE_LIFESPAN_PER_CLIENT
    • OAUTH2_DEVICE_POLLING_INTERVAL_PER_CLIENT

      public static String OAUTH2_DEVICE_POLLING_INTERVAL_PER_CLIENT
    • OAUTH2_DEVICE_AUTHORIZATION_GRANT_ENABLED

      public static final String OAUTH2_DEVICE_AUTHORIZATION_GRANT_ENABLED
      See Also:
  • Constructor Details

    • OAuth2DeviceConfig

      public OAuth2DeviceConfig(RealmModel realm)
  • Method Details

    • getLifespan

      public int getLifespan()
    • setOAuth2DeviceCodeLifespan

      public void setOAuth2DeviceCodeLifespan(Integer seconds)
    • setOAuth2DeviceCodeLifespan

      public void setOAuth2DeviceCodeLifespan(RealmModel realm, Integer seconds)
    • getPoolingInterval

      public int getPoolingInterval()
    • setOAuth2DevicePollingInterval

      public void setOAuth2DevicePollingInterval(Integer seconds)
    • setOAuth2DevicePollingInterval

      public void setOAuth2DevicePollingInterval(RealmModel realm, Integer seconds)
    • getLifespan

      public int getLifespan(ClientModel client)
    • getPoolingInterval

      public int getPoolingInterval(ClientModel client)
    • isOAuth2DeviceAuthorizationGrantEnabled

      public boolean isOAuth2DeviceAuthorizationGrantEnabled(ClientModel client)