Class RefreshToken

java.lang.Object
com.auth0.json.mgmt.client.RefreshToken

public class RefreshToken extends Object
Class that represents the configuration of refresh tokens for a client.
  • Constructor Details

    • RefreshToken

      public RefreshToken()
  • Method Details

    • getRotationType

      public String getRotationType()
      Getter for the rotation type of the refresh token.
      Returns:
      the rotation type.
    • setRotationType

      public void setRotationType(String rotationType)
      Setter for the rotation type of the refresh token.
      Parameters:
      rotationType - the rotation type to set.
    • getExpirationType

      public String getExpirationType()
      Getter for the expiration type of the refresh token.
      Returns:
      the expiration type.
    • setExpirationType

      public void setExpirationType(String expirationType)
      Setter for the expiration type of the refresh token.
      Parameters:
      expirationType - the expiration type to set.
    • getLeeway

      public Integer 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

      public void setLeeway(Integer leeway)
      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

      public Integer getTokenLifetime()
      Getter for the period in seconds for which refresh tokens will remain valid.
      Returns:
      a token's lifetime in seconds.
    • setTokenLifetime

      public void setTokenLifetime(Integer tokenLifetime)
      Setter for the period in seconds for which refresh tokens will remain valid.
      Parameters:
      tokenLifetime - a token's lifetime in seconds.
    • getInfiniteTokenLifetime

      public Boolean 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

      public void setInfiniteTokenLifetime(Boolean infiniteTokenLifetime)
      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

      public Integer 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

      public void setIdleTokenLifetime(Integer idleTokenLifetime)
      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

      public Boolean 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

      public void setInfiniteIdleTokenLifetime(Boolean infiniteIdleTokenLifetime)
      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.