Package com.auth0.json.mgmt.client
Class JWTConfiguration
java.lang.Object
com.auth0.json.mgmt.client.JWTConfiguration
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGetter for the algorithm used to sign JWTs.Getter for the amount of seconds the JWT will be valid.Getter for the scopes.Whether the application's client secret is base64 encoded or not.void
setAlgorithm(String alg)
Setter for the algorithm used to sign JWTs.void
setLifetimeInSeconds(Integer lifetimeInSeconds)
Setter for the amount of seconds the JWT will be valid.void
Setter for the scopes.
-
Constructor Details
-
JWTConfiguration
-
-
Method Details
-
getLifetimeInSeconds
Getter for the amount of seconds the JWT will be valid. (Affects 'exp' claim)- Returns:
- the lifetime in seconds.
-
setLifetimeInSeconds
Setter for the amount of seconds the JWT will be valid. (Affects 'exp' claim)- Parameters:
lifetimeInSeconds
- the lifetime in seconds to set.
-
isSecretEncoded
Whether the application's client secret is base64 encoded or not.- Returns:
- true if the application secret is base64 encoded, false otherwise.
-
getScopes
Getter for the scopes.- Returns:
- the scopes.
-
setScopes
Setter for the scopes.- Parameters:
scopes
- the scopes value to set.
-
getAlgorithm
Getter for the algorithm used to sign JWTs.- Returns:
- the algorithm used to sign JWTs.
-
setAlgorithm
Setter for the algorithm used to sign JWTs.- Parameters:
alg
- the algorithm to use to sign JWTs.
-