Class JWTConfiguration

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

public class JWTConfiguration extends Object
  • Constructor Details

    • JWTConfiguration

      public JWTConfiguration(Integer lifetimeInSeconds, Object scopes, String alg)
  • Method Details

    • getLifetimeInSeconds

      public Integer getLifetimeInSeconds()
      Getter for the amount of seconds the JWT will be valid. (Affects 'exp' claim)
      Returns:
      the lifetime in seconds.
    • setLifetimeInSeconds

      public void setLifetimeInSeconds(Integer lifetimeInSeconds)
      Setter for the amount of seconds the JWT will be valid. (Affects 'exp' claim)
      Parameters:
      lifetimeInSeconds - the lifetime in seconds to set.
    • isSecretEncoded

      public Boolean isSecretEncoded()
      Whether the application's client secret is base64 encoded or not.
      Returns:
      true if the application secret is base64 encoded, false otherwise.
    • getScopes

      public Object getScopes()
      Getter for the scopes.
      Returns:
      the scopes.
    • setScopes

      public void setScopes(Object scopes)
      Setter for the scopes.
      Parameters:
      scopes - the scopes value to set.
    • getAlgorithm

      public String getAlgorithm()
      Getter for the algorithm used to sign JWTs.
      Returns:
      the algorithm used to sign JWTs.
    • setAlgorithm

      public void setAlgorithm(String alg)
      Setter for the algorithm used to sign JWTs.
      Parameters:
      alg - the algorithm to use to sign JWTs.