Package org.keycloak.models
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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static int
DEFAULT_OAUTH2_DEVICE_CODE_LIFESPAN
static int
DEFAULT_OAUTH2_DEVICE_POLLING_INTERVAL
static String
OAUTH2_DEVICE_AUTHORIZATION_GRANT_ENABLED
static String
OAUTH2_DEVICE_CODE_LIFESPAN
static String
OAUTH2_DEVICE_CODE_LIFESPAN_PER_CLIENT
static String
OAUTH2_DEVICE_POLLING_INTERVAL
static String
OAUTH2_DEVICE_POLLING_INTERVAL_PER_CLIENT
-
Constructor Summary
Constructors Constructor Description OAuth2DeviceConfig(RealmModel realm)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getLifespan()
int
getLifespan(ClientModel client)
int
getPoolingInterval()
int
getPoolingInterval(ClientModel client)
boolean
isOAuth2DeviceAuthorizationGrantEnabled(ClientModel client)
void
setOAuth2DeviceCodeLifespan(Integer seconds)
void
setOAuth2DevicePollingInterval(Integer seconds)
-
-
-
Field Detail
-
DEFAULT_OAUTH2_DEVICE_CODE_LIFESPAN
public static final int DEFAULT_OAUTH2_DEVICE_CODE_LIFESPAN
- See Also:
- Constant Field Values
-
DEFAULT_OAUTH2_DEVICE_POLLING_INTERVAL
public static final int DEFAULT_OAUTH2_DEVICE_POLLING_INTERVAL
- See Also:
- Constant Field Values
-
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:
- Constant Field Values
-
-
Constructor Detail
-
OAuth2DeviceConfig
public OAuth2DeviceConfig(RealmModel realm)
-
-
Method Detail
-
getLifespan
public int getLifespan()
-
setOAuth2DeviceCodeLifespan
public void setOAuth2DeviceCodeLifespan(Integer seconds)
-
getPoolingInterval
public int getPoolingInterval()
-
setOAuth2DevicePollingInterval
public void setOAuth2DevicePollingInterval(Integer seconds)
-
getLifespan
public int getLifespan(ClientModel client)
-
getPoolingInterval
public int getPoolingInterval(ClientModel client)
-
isOAuth2DeviceAuthorizationGrantEnabled
public boolean isOAuth2DeviceAuthorizationGrantEnabled(ClientModel client)
-
-