Class OAuth2AuthorizedClientEntityCleanupRequest
java.lang.Object
com.broadleafcommerce.auth.client.domain.cleanup.OAuth2AuthorizedClientEntityCleanupRequest
Contains details required as input to
OAuth2AuthorizedClientEntityService.cleanupOutdatedEntities(OAuth2AuthorizedClientEntityCleanupRequest)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
For entities where there is no valid refresh token available,OAuth2AuthorizedClientEntity.getAccessTokenExpiresAt()
must be less than or equal to this value in order to be considered 'outdated' and eligible for pruning.For entities where there is a valid refresh token available,OAuth2AuthorizedClientEntity.getAccessTokenExpiresAt()
must be less than or equal to this value in order to be considered 'outdated' and eligible for pruning.int
The maximum number of records that should be considered for a batch.Contains the response received from the last execution ofOAuth2AuthorizedClientEntityService.cleanupOutdatedEntities(OAuth2AuthorizedClientEntityCleanupRequest)
in a particular batch sequence.For entities where a refresh token has been set,OAuth2AuthorizedClientEntity.getRefreshTokenExpiresAt()
must be less than or equal to this value in order to be considered invalid and unusable.int
hashCode()
void
setAccessTokenExpThresholdIfNoValidRefreshToken
(Instant accessTokenExpThresholdIfNoValidRefreshToken) For entities where there is no valid refresh token available,OAuth2AuthorizedClientEntity.getAccessTokenExpiresAt()
must be less than or equal to this value in order to be considered 'outdated' and eligible for pruning.void
setAccessTokenExpThresholdIfValidRefreshToken
(Instant accessTokenExpThresholdIfValidRefreshToken) For entities where there is a valid refresh token available,OAuth2AuthorizedClientEntity.getAccessTokenExpiresAt()
must be less than or equal to this value in order to be considered 'outdated' and eligible for pruning.void
setBatchSizeLimit
(int batchSizeLimit) The maximum number of records that should be considered for a batch.void
setLastUpdatedResponse
(OAuth2AuthorizedClientEntityCleanupResponse lastUpdatedResponse) Contains the response received from the last execution ofOAuth2AuthorizedClientEntityService.cleanupOutdatedEntities(OAuth2AuthorizedClientEntityCleanupRequest)
in a particular batch sequence.void
setRefreshTokenInvalidExpirationThreshold
(Instant refreshTokenInvalidExpirationThreshold) For entities where a refresh token has been set,OAuth2AuthorizedClientEntity.getRefreshTokenExpiresAt()
must be less than or equal to this value in order to be considered invalid and unusable.toString()
-
Constructor Details
-
OAuth2AuthorizedClientEntityCleanupRequest
public OAuth2AuthorizedClientEntityCleanupRequest()
-
-
Method Details
-
getLastUpdatedResponse
Contains the response received from the last execution ofOAuth2AuthorizedClientEntityService.cleanupOutdatedEntities(OAuth2AuthorizedClientEntityCleanupRequest)
in a particular batch sequence. Can be null if no prior batch was executed for the current sequence. -
getAccessTokenExpThresholdIfNoValidRefreshToken
For entities where there is no valid refresh token available,OAuth2AuthorizedClientEntity.getAccessTokenExpiresAt()
must be less than or equal to this value in order to be considered 'outdated' and eligible for pruning. -
getAccessTokenExpThresholdIfValidRefreshToken
For entities where there is a valid refresh token available,OAuth2AuthorizedClientEntity.getAccessTokenExpiresAt()
must be less than or equal to this value in order to be considered 'outdated' and eligible for pruning. -
getRefreshTokenInvalidExpirationThreshold
For entities where a refresh token has been set,
OAuth2AuthorizedClientEntity.getRefreshTokenExpiresAt()
must be less than or equal to this value in order to be considered invalid and unusable.It may be preferable to not make this exactly the current time to allow in-flight last-minute refresh attempts to succeed (a sort of grace period).
-
getBatchSizeLimit
public int getBatchSizeLimit()The maximum number of records that should be considered for a batch. -
setLastUpdatedResponse
public void setLastUpdatedResponse(@Nullable OAuth2AuthorizedClientEntityCleanupResponse lastUpdatedResponse) Contains the response received from the last execution ofOAuth2AuthorizedClientEntityService.cleanupOutdatedEntities(OAuth2AuthorizedClientEntityCleanupRequest)
in a particular batch sequence. Can be null if no prior batch was executed for the current sequence. -
setAccessTokenExpThresholdIfNoValidRefreshToken
public void setAccessTokenExpThresholdIfNoValidRefreshToken(Instant accessTokenExpThresholdIfNoValidRefreshToken) For entities where there is no valid refresh token available,OAuth2AuthorizedClientEntity.getAccessTokenExpiresAt()
must be less than or equal to this value in order to be considered 'outdated' and eligible for pruning. -
setAccessTokenExpThresholdIfValidRefreshToken
public void setAccessTokenExpThresholdIfValidRefreshToken(Instant accessTokenExpThresholdIfValidRefreshToken) For entities where there is a valid refresh token available,OAuth2AuthorizedClientEntity.getAccessTokenExpiresAt()
must be less than or equal to this value in order to be considered 'outdated' and eligible for pruning. -
setRefreshTokenInvalidExpirationThreshold
public void setRefreshTokenInvalidExpirationThreshold(Instant refreshTokenInvalidExpirationThreshold) For entities where a refresh token has been set,
OAuth2AuthorizedClientEntity.getRefreshTokenExpiresAt()
must be less than or equal to this value in order to be considered invalid and unusable.It may be preferable to not make this exactly the current time to allow in-flight last-minute refresh attempts to succeed (a sort of grace period).
-
setBatchSizeLimit
public void setBatchSizeLimit(int batchSizeLimit) The maximum number of records that should be considered for a batch. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-