public class JWTOptions extends Object
Constructor and Description |
---|
JWTOptions() |
JWTOptions(JsonObject json) |
JWTOptions(JWTOptions other) |
public JWTOptions()
public JWTOptions(JWTOptions other)
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 expires)
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)
@Deprecated public JWTOptions setPermissions(List<String> permissions)
JWTAuthorization
for a correct way to handle permissions.
The permissions of this token.permissions
- the permissions for this token that will be used for AuthZ@Deprecated public JWTOptions addPermission(String permission)
JWTAuthorization
for a correct way to handle permissions.
Add a permission to this token.permission
- permission for this token that will be used for AuthZ@Deprecated public List<String> getPermissions()
public String getNonceAlgorithm()
public JWTOptions setNonceAlgorithm(String nonceAlgorithm)
Copyright © 2024 Eclipse. All rights reserved.