public class JWTOptions extends Object
Constructor and Description |
---|
JWTOptions() |
JWTOptions(JsonObject json) |
Modifier and Type | Method and Description |
---|---|
JWTOptions |
addAudience(String audience) |
JWTOptions |
addPermission(String permission)
Add a permission to this token.
|
String |
getAlgorithm() |
List<String> |
getAudience() |
int |
getExpiresInSeconds() |
JsonObject |
getHeader() |
String |
getIssuer() |
int |
getLeeway() |
List<String> |
getPermissions() |
String |
getSubject() |
boolean |
isIgnoreExpiration() |
boolean |
isNoTimestamp() |
JWTOptions |
setAlgorithm(String algorithm) |
JWTOptions |
setAudience(List<String> audience) |
JWTOptions |
setExpiresInMinutes(int expiresInMinutes) |
JWTOptions |
setExpiresInSeconds(int expiresInSeconds) |
JWTOptions |
setHeader(JsonObject header) |
JWTOptions |
setIgnoreExpiration(boolean ignoreExpiration) |
JWTOptions |
setIssuer(String issuer) |
JWTOptions |
setLeeway(int leeway) |
JWTOptions |
setNoTimestamp(boolean noTimestamp) |
JWTOptions |
setPermissions(List<String> permissions)
The permissions of this token.
|
JWTOptions |
setSubject(String subject) |
JsonObject |
toJSON() |
public JWTOptions()
public JWTOptions(JsonObject json)
public JsonObject toJSON()
public int getLeeway()
public JWTOptions setLeeway(int leeway)
public boolean isIgnoreExpiration()
public JWTOptions setIgnoreExpiration(boolean ignoreExpiration)
public String getAlgorithm()
public JWTOptions setAlgorithm(String algorithm)
public JsonObject getHeader()
public JWTOptions setHeader(JsonObject header)
public boolean isNoTimestamp()
public JWTOptions setNoTimestamp(boolean noTimestamp)
public int getExpiresInSeconds()
public JWTOptions setExpiresInSeconds(int expiresInSeconds)
public JWTOptions setExpiresInMinutes(int expiresInMinutes)
public JWTOptions setAudience(List<String> audience)
public JWTOptions addAudience(String audience)
public String getIssuer()
public JWTOptions setIssuer(String issuer)
public String getSubject()
public JWTOptions setSubject(String subject)
public JWTOptions setPermissions(List<String> permissions)
permissions
- the permissions for this token that will be used for AuthZpublic JWTOptions addPermission(String permission)
permission
- permission for this token that will be used for AuthZCopyright © 2023 Eclipse. All rights reserved.