T
- B
- public class JWTBuilder<T extends JWT,B extends JWTBuilder> extends Object
Modifier | Constructor and Description |
---|---|
|
JWTBuilder() |
protected |
JWTBuilder(Class<T> tokenType) |
Modifier and Type | Method and Description |
---|---|
B |
audience(String... audience) |
T |
build()
Builds a
JWT instance using the provided claims. |
protected T |
build(javax.json.JsonObject headersObject,
javax.json.JsonObject claimsObject) |
T |
build(String json)
Builds a
JWT instance from its JSON representation. |
B |
claim(String name,
int... value) |
B |
claim(String name,
String... value) |
B |
contentType(String contentType) |
B |
expiration(int expirationTime) |
protected javax.json.JsonObjectBuilder |
getClaimsBuilder()
Subclasses can use this method to obatain a reference to the
JsonObjectBuilder being
used to manage the claims set. |
protected javax.json.JsonObjectBuilder |
getHeadersBuilder() |
protected Class<T> |
getTokenType() |
B |
header(String name,
int... value) |
B |
header(String name,
String... value) |
B |
id(String id) |
B |
issuedAt(int issuedAt) |
B |
issuer(String issuer) |
B |
notBefore(int notBefore) |
B |
subject(String subject) |
B |
type(String type) |
public B issuedAt(int issuedAt)
public B expiration(int expirationTime)
public B notBefore(int notBefore)
protected javax.json.JsonObjectBuilder getClaimsBuilder()
Subclasses can use this method to obatain a reference to the JsonObjectBuilder
being
used to manage the claims set.
protected javax.json.JsonObjectBuilder getHeadersBuilder()
protected T build(javax.json.JsonObject headersObject, javax.json.JsonObject claimsObject)
Copyright © 2014. All rights reserved.