程序包 | 说明 |
---|---|
com.fr.cert.token | |
com.fr.cert.token.impl |
限定符和类型 | 方法和说明 |
---|---|
JwtBuilder |
JwtBuilder.addClaims(java.util.Map<java.lang.String,java.lang.Object> claims)
Adds all given name/value pairs to the JSON Claims in the payload.
|
static JwtBuilder |
Jwts.builder()
Returns a new
JwtBuilder instance that can be configured and then used to create JWT compact serialized
strings. |
JwtBuilder |
JwtBuilder.claim(java.lang.String name,
java.lang.Object value)
Sets a custom JWT Claims parameter value.
|
JwtBuilder |
JwtBuilder.compressWith(CompressionCodec codec)
Compresses the JWT body using the specified
CompressionCodec . |
JwtBuilder |
JwtBuilder.setAudience(java.lang.String aud)
Sets the JWT Claims
aud (audience) value. |
JwtBuilder |
JwtBuilder.setClaims(Claims claims)
Sets the JWT payload to be a JSON Claims instance.
|
JwtBuilder |
JwtBuilder.setClaims(java.util.Map<java.lang.String,java.lang.Object> claims)
Sets the JWT payload to be a JSON Claims instance populated by the specified name/value pairs.
|
JwtBuilder |
JwtBuilder.setExpiration(java.util.Date exp)
Sets the JWT Claims
exp (expiration) value. |
JwtBuilder |
JwtBuilder.setHeader(Header header)
Sets (and replaces) any existing header with the specified header.
|
JwtBuilder |
JwtBuilder.setHeader(java.util.Map<java.lang.String,java.lang.Object> header)
Sets (and replaces) any existing header with the specified header.
|
JwtBuilder |
JwtBuilder.setHeaderParam(java.lang.String name,
java.lang.Object value)
Applies the specified name/value pair to the header.
|
JwtBuilder |
JwtBuilder.setHeaderParams(java.util.Map<java.lang.String,java.lang.Object> params)
Applies the specified name/value pairs to the header.
|
JwtBuilder |
JwtBuilder.setId(java.lang.String jti)
Sets the JWT Claims
jti (JWT ID) value. |
JwtBuilder |
JwtBuilder.setIssuedAt(java.util.Date iat)
Sets the JWT Claims
iat (issued at) value. |
JwtBuilder |
JwtBuilder.setIssuer(java.lang.String iss)
Sets the JWT Claims
iss (issuer) value. |
JwtBuilder |
JwtBuilder.setNotBefore(java.util.Date nbf)
Sets the JWT Claims
nbf (not before) value. |
JwtBuilder |
JwtBuilder.setPayload(java.lang.String payload)
Sets the JWT's payload to be a plaintext (non-JSON) string.
|
JwtBuilder |
JwtBuilder.setSubject(java.lang.String sub)
Sets the JWT Claims
sub (subject) value. |
JwtBuilder |
JwtBuilder.signWith(SignatureAlgorithm alg,
byte[] secretKey)
Signs the constructed JWT using the specified algorithm with the specified key, producing a JWS.
|
JwtBuilder |
JwtBuilder.signWith(SignatureAlgorithm alg,
java.security.Key key)
Signs the constructed JWT using the specified algorithm with the specified key, producing a JWS.
|
JwtBuilder |
JwtBuilder.signWith(SignatureAlgorithm alg,
java.lang.String base64EncodedSecretKey)
Signs the constructed JWT using the specified algorithm with the specified key, producing a JWS.
|
限定符和类型 | 类和说明 |
---|---|
class |
DefaultJwtBuilder |
限定符和类型 | 方法和说明 |
---|---|
JwtBuilder |
DefaultJwtBuilder.addClaims(java.util.Map<java.lang.String,java.lang.Object> claims) |
JwtBuilder |
DefaultJwtBuilder.claim(java.lang.String name,
java.lang.Object value) |
JwtBuilder |
DefaultJwtBuilder.compressWith(CompressionCodec compressionCodec) |
JwtBuilder |
DefaultJwtBuilder.setAudience(java.lang.String aud) |
JwtBuilder |
DefaultJwtBuilder.setClaims(Claims claims) |
JwtBuilder |
DefaultJwtBuilder.setClaims(java.util.Map<java.lang.String,java.lang.Object> claims) |
JwtBuilder |
DefaultJwtBuilder.setDescription(java.lang.String description) |
JwtBuilder |
DefaultJwtBuilder.setExpiration(java.util.Date exp) |
JwtBuilder |
DefaultJwtBuilder.setHeader(Header header) |
JwtBuilder |
DefaultJwtBuilder.setHeader(java.util.Map<java.lang.String,java.lang.Object> header) |
JwtBuilder |
DefaultJwtBuilder.setHeaderParam(java.lang.String name,
java.lang.Object value) |
JwtBuilder |
DefaultJwtBuilder.setHeaderParams(java.util.Map<java.lang.String,java.lang.Object> params) |
JwtBuilder |
DefaultJwtBuilder.setId(java.lang.String jti) |
JwtBuilder |
DefaultJwtBuilder.setIssuedAt(java.util.Date iat) |
JwtBuilder |
DefaultJwtBuilder.setIssuer(java.lang.String iss) |
JwtBuilder |
DefaultJwtBuilder.setNotBefore(java.util.Date nbf) |
JwtBuilder |
DefaultJwtBuilder.setPayload(java.lang.String payload) |
JwtBuilder |
DefaultJwtBuilder.setSubject(java.lang.String sub) |
JwtBuilder |
DefaultJwtBuilder.signWith(SignatureAlgorithm alg,
byte[] secretKey) |
JwtBuilder |
DefaultJwtBuilder.signWith(SignatureAlgorithm alg,
java.security.Key key) |
JwtBuilder |
DefaultJwtBuilder.signWith(SignatureAlgorithm alg,
java.lang.String base64EncodedSecretKey) |