| Constructor and Description |
|---|
JWTSigner.Options() |
| Modifier and Type | Method and Description |
|---|---|
Algorithm |
getAlgorithm() |
Integer |
getExpirySeconds() |
Integer |
getNotValidBeforeLeeway() |
boolean |
isIssuedAt() |
boolean |
isJwtId() |
JWTSigner.Options |
setAlgorithm(Algorithm algorithm)
Algorithm to sign JWT with.
|
JWTSigner.Options |
setExpirySeconds(Integer expirySeconds)
Set JWT claim "exp" to current timestamp plus this value.
|
JWTSigner.Options |
setIssuedAt(boolean issuedAt)
Set JWT claim "iat" to current timestamp.
|
JWTSigner.Options |
setJwtId(boolean jwtId)
Set JWT claim "jti" to a pseudo random unique value (type 4 UUID).
|
JWTSigner.Options |
setNotValidBeforeLeeway(Integer notValidBeforeLeeway)
Set JWT claim "nbf" to current timestamp minus this value.
|
public Algorithm getAlgorithm()
public JWTSigner.Options setAlgorithm(Algorithm algorithm)
public Integer getExpirySeconds()
public JWTSigner.Options setExpirySeconds(Integer expirySeconds)
claims in sign().public Integer getNotValidBeforeLeeway()
public JWTSigner.Options setNotValidBeforeLeeway(Integer notValidBeforeLeeway)
claims in sign().public boolean isIssuedAt()
public JWTSigner.Options setIssuedAt(boolean issuedAt)
claims in sign().public boolean isJwtId()
public JWTSigner.Options setJwtId(boolean jwtId)
claims in sign().Copyright © 2016. All Rights Reserved.