|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.auth0.jwt.JWTSigner.Options
public static class JWTSigner.Options
An option object for JWT signing operation. Allow choosing the algorithm, and/or specifying claims to be automatically set.
Constructor Summary | |
---|---|
JWTSigner.Options()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JWTSigner.Options()
Method Detail |
---|
public Algorithm getAlgorithm()
public JWTSigner.Options setAlgorithm(Algorithm algorithm)
HS256
.
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()
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |