Package com.auth0.json.mgmt.client
Class RefreshToken
java.lang.Object
com.auth0.json.mgmt.client.RefreshToken
Class that represents the configuration of refresh tokens for a client.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGetter for the expiration type of the refresh token.Getter for the period in seconds for which refresh tokens will remain valid without use.Getter for determining whether tokens expire without use or not.Getter for determining whether tokens have a set lifetime or not.Getter for the period in seconds where the previous refresh token can be exchanged without triggering breach detection.Getter for the rotation type of the refresh token.Getter for the period in seconds for which refresh tokens will remain valid.void
setExpirationType
(String expirationType) Setter for the expiration type of the refresh token.void
setIdleTokenLifetime
(Integer idleTokenLifetime) Setter for the period in seconds for which refresh tokens will remain valid without use.void
setInfiniteIdleTokenLifetime
(Boolean infiniteIdleTokenLifetime) Setter for determining whether tokens expire without use or not.void
setInfiniteTokenLifetime
(Boolean infiniteTokenLifetime) Setter for determining whether tokens have a set lifetime or not.void
Setter for the period in seconds where the previous refresh token can be exchanged without triggering breach detection.void
setRotationType
(String rotationType) Setter for the rotation type of the refresh token.void
setTokenLifetime
(Integer tokenLifetime) Setter for the period in seconds for which refresh tokens will remain valid.
-
Constructor Details
-
RefreshToken
public RefreshToken()
-
-
Method Details
-
getRotationType
Getter for the rotation type of the refresh token.- Returns:
- the rotation type.
-
setRotationType
Setter for the rotation type of the refresh token.- Parameters:
rotationType
- the rotation type to set.
-
getExpirationType
Getter for the expiration type of the refresh token.- Returns:
- the expiration type.
-
setExpirationType
Setter for the expiration type of the refresh token.- Parameters:
expirationType
- the expiration type to set.
-
getLeeway
Getter for the period in seconds where the previous refresh token can be exchanged without triggering breach detection.- Returns:
- the leeway in seconds.
-
setLeeway
Setter for the period in seconds where the previous refresh token can be exchanged without triggering breach detection.- Parameters:
leeway
- the leeway in seconds.
-
getTokenLifetime
Getter for the period in seconds for which refresh tokens will remain valid.- Returns:
- a token's lifetime in seconds.
-
setTokenLifetime
Setter for the period in seconds for which refresh tokens will remain valid.- Parameters:
tokenLifetime
- a token's lifetime in seconds.
-
getInfiniteTokenLifetime
Getter for determining whether tokens have a set lifetime or not. This takes precedence over token_lifetime values.- Returns:
- true if tokens do not have a set lifetime, false otherwise.
-
setInfiniteTokenLifetime
Setter for determining whether tokens have a set lifetime or not. This takes precedence over token_lifetime values.- Parameters:
infiniteTokenLifetime
- true if tokens do not have a set lifetime, false otherwise.
-
getIdleTokenLifetime
Getter for the period in seconds for which refresh tokens will remain valid without use.- Returns:
- a token's lifetime without use in seconds.
-
setIdleTokenLifetime
Setter for the period in seconds for which refresh tokens will remain valid without use.- Parameters:
idleTokenLifetime
- a token's lifetime without use in seconds.
-
getInfiniteIdleTokenLifetime
Getter for determining whether tokens expire without use or not. This takes precedence over idle_token_lifetime values.- Returns:
- true if tokens do not expire from lack of use, false otherwise.
-
setInfiniteIdleTokenLifetime
Setter for determining whether tokens expire without use or not. This takes precedence over idle_token_lifetime values.- Parameters:
infiniteIdleTokenLifetime
- true if tokens do not expire from lack of use, false otherwise.
-