@ConfigurationProperties(prefix="broadleaf.auth.token") public class TokenProperties extends Object
Modifier and Type | Field and Description |
---|---|
static int |
REFRESH_TOKEN_CLEANUP_BATCH_SIZE_DEFAULT |
static int |
REFRESH_TOKEN_CLEANUP_INTERVAL_SECONDS_MAX_DEFAULT |
static int |
REFRESH_TOKEN_CLEANUP_INTERVAL_SECONDS_MIN_DEFAULT |
static int |
REFRESH_TOKEN_ROTATION_INTERVAL_SECONDS_DEFAULT |
static int |
REFRESH_TOKEN_TIMEOUT_SECONDS_DEFAULT |
static int |
TOKEN_TIMEOUT_SECONDS_DEFAULT |
Constructor and Description |
---|
TokenProperties() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
int |
getCleanupBatchSize()
The quantity of expired refresh tokens to delete at one time.
|
Duration |
getMaxTokenCleanupInterval()
The max amount of pause time between batch expired refresh token cleanup attempts.
|
Duration |
getMinTokenCleanupInterval()
The min amount of pause time between batch expired refresh token cleanup attempts.
|
String |
getNamespace()
Namespace to use when getting the view for the camel cluster.
|
Duration |
getRefreshTokenRotationInterval()
Amount of time that a rotated refresh token is still valid for refresh attempts after it is
initially rotated.
|
int |
hashCode() |
boolean |
isDeveloperMode()
Deprecated.
Appropriate state for development is now handled through the
broadleaf.messaging.cluster-service-implementation-type property. |
boolean |
isSupportRefreshTokenCleanup()
Whether or not the system should cleanup expired refresh tokens from the system.
|
boolean |
isSupportRefreshTokenRotation()
Whether or not refresh token rotation is supported.
|
void |
setCleanupBatchSize(int cleanupBatchSize)
The quantity of expired refresh tokens to delete at one time.
|
void |
setDeveloperMode(boolean developerMode)
Deprecated.
Appropriate state for development is now handled through the
broadleaf.messaging.cluster-service-implementation-type property. |
void |
setMaxTokenCleanupInterval(Duration maxTokenCleanupInterval)
The max amount of pause time between batch expired refresh token cleanup attempts.
|
void |
setMinTokenCleanupInterval(Duration minTokenCleanupInterval)
The min amount of pause time between batch expired refresh token cleanup attempts.
|
void |
setNamespace(String namespace)
Namespace to use when getting the view for the camel cluster.
|
void |
setRefreshTokenRotationInterval(Duration refreshTokenRotationInterval)
Amount of time that a rotated refresh token is still valid for refresh attempts after it is
initially rotated.
|
void |
setSupportRefreshTokenCleanup(boolean supportRefreshTokenCleanup)
Whether or not the system should cleanup expired refresh tokens from the system.
|
void |
setSupportRefreshTokenRotation(boolean supportRefreshTokenRotation)
Whether or not refresh token rotation is supported.
|
String |
toString() |
public static final int REFRESH_TOKEN_TIMEOUT_SECONDS_DEFAULT
public static final int REFRESH_TOKEN_ROTATION_INTERVAL_SECONDS_DEFAULT
public static final int TOKEN_TIMEOUT_SECONDS_DEFAULT
public static final int REFRESH_TOKEN_CLEANUP_INTERVAL_SECONDS_MAX_DEFAULT
public static final int REFRESH_TOKEN_CLEANUP_BATCH_SIZE_DEFAULT
public static final int REFRESH_TOKEN_CLEANUP_INTERVAL_SECONDS_MIN_DEFAULT
public Duration getRefreshTokenRotationInterval()
The default interval is 60 seconds.
public boolean isSupportRefreshTokenRotation()
The default value is false.
public boolean isSupportRefreshTokenCleanup()
The default value is true.
public String getNamespace()
@Deprecated public boolean isDeveloperMode()
broadleaf.messaging.cluster-service-implementation-type
property.public Duration getMaxTokenCleanupInterval()
public Duration getMinTokenCleanupInterval()
maxTokenCleanupInterval
to achieve a constant, non-randomized value.public int getCleanupBatchSize()
public void setRefreshTokenRotationInterval(Duration refreshTokenRotationInterval)
The default interval is 60 seconds.
public void setSupportRefreshTokenRotation(boolean supportRefreshTokenRotation)
The default value is false.
public void setSupportRefreshTokenCleanup(boolean supportRefreshTokenCleanup)
The default value is true.
public void setNamespace(String namespace)
@Deprecated public void setDeveloperMode(boolean developerMode)
broadleaf.messaging.cluster-service-implementation-type
property.public void setMaxTokenCleanupInterval(Duration maxTokenCleanupInterval)
public void setMinTokenCleanupInterval(Duration minTokenCleanupInterval)
maxTokenCleanupInterval
to achieve a constant, non-randomized value.public void setCleanupBatchSize(int cleanupBatchSize)
protected boolean canEqual(Object other)
Copyright © 2021. All rights reserved.