程序包 | 说明 |
---|---|
com.fr.cert.token | |
com.fr.cert.token.impl | |
com.fr.security |
限定符和类型 | 方法和说明 |
---|---|
static Claims |
Jwts.claims()
Returns a new
Claims instance to be used as a JWT body. |
static Claims |
Jwts.claims(java.util.Map<java.lang.String,java.lang.Object> claims)
Returns a new
Claims instance populated with the specified name/value pairs. |
Claims |
ClaimJwtException.getClaims() |
Claims |
Claims.setAudience(java.lang.String aud)
Sets the JWT
aud (audience) value. |
Claims |
Claims.setDescription(java.lang.String description) |
Claims |
Claims.setExpiration(java.util.Date exp)
Sets the JWT
exp (expiration) timestamp. |
Claims |
Claims.setId(java.lang.String jti)
Sets the JWT
jti (JWT ID) value. |
Claims |
Claims.setIssuedAt(java.util.Date iat)
Sets the JWT
iat (issued at) timestamp. |
Claims |
Claims.setIssuer(java.lang.String iss)
Sets the JWT
iss (issuer) value. |
Claims |
Claims.setNotBefore(java.util.Date nbf)
Sets the JWT
nbf (not before) timestamp. |
Claims |
Claims.setSubject(java.lang.String sub)
Sets the JWT
sub (subject) value. |
限定符和类型 | 方法和说明 |
---|---|
Jws<Claims> |
JwtParser.parseClaimsJws(java.lang.String claimsJws)
Parses the specified compact serialized JWS string based on the builder's current configuration state and
returns
the resulting Claims JWS instance.
|
Jwt<Header,Claims> |
JwtParser.parseClaimsJwt(java.lang.String claimsJwt)
Parses the specified compact serialized JWT string based on the builder's current configuration state and
returns
the resulting unsigned plaintext JWT instance.
|
限定符和类型 | 方法和说明 |
---|---|
java.security.Key |
SigningKeyResolverAdapter.resolveSigningKey(JwsHeader header,
Claims claims) |
java.security.Key |
SigningKeyResolver.resolveSigningKey(JwsHeader header,
Claims claims)
Returns the signing key that should be used to validate a digital signature for the Claims JWS with the specified
header and claims.
|
byte[] |
SigningKeyResolverAdapter.resolveSigningKeyBytes(JwsHeader header,
Claims claims)
Convenience method invoked by
SigningKeyResolverAdapter.resolveSigningKey(JwsHeader, Claims) that obtains the necessary signing
key bytes. |
JwtBuilder |
JwtBuilder.setClaims(Claims claims)
Sets the JWT payload to be a JSON Claims instance.
|
限定符和类型 | 方法和说明 |
---|---|
T |
JwtHandlerAdapter.onClaimsJws(Jws<Claims> jws) |
T |
JwtHandler.onClaimsJws(Jws<Claims> jws)
This method is invoked when a
JwtParser determines that the parsed JWT is
a valid Claims JWS. |
T |
JwtHandlerAdapter.onClaimsJwt(Jwt<Header,Claims> jwt) |
T |
JwtHandler.onClaimsJwt(Jwt<Header,Claims> jwt)
This method is invoked when a
JwtParser determines that the parsed JWT is
a Claims JWT. |
构造器和说明 |
---|
ClaimJwtException(Header header,
Claims claims,
java.lang.String message) |
ClaimJwtException(Header header,
Claims claims,
java.lang.String message,
java.lang.Throwable cause) |
ExpiredJwtException(Header header,
Claims claims,
java.lang.String message) |
ExpiredJwtException(Header header,
Claims claims,
java.lang.String message,
java.lang.Throwable cause) |
IncorrectClaimException(Header header,
Claims claims,
java.lang.String message) |
IncorrectClaimException(Header header,
Claims claims,
java.lang.String message,
java.lang.Throwable cause) |
InvalidClaimException(Header header,
Claims claims,
java.lang.String message) |
InvalidClaimException(Header header,
Claims claims,
java.lang.String message,
java.lang.Throwable cause) |
MissingClaimException(Header header,
Claims claims,
java.lang.String message) |
MissingClaimException(Header header,
Claims claims,
java.lang.String message,
java.lang.Throwable cause) |
PrematureJwtException(Header header,
Claims claims,
java.lang.String message) |
PrematureJwtException(Header header,
Claims claims,
java.lang.String message,
java.lang.Throwable cause) |
限定符和类型 | 类和说明 |
---|---|
class |
DefaultClaims |
限定符和类型 | 方法和说明 |
---|---|
protected Claims |
DefaultJwtBuilder.ensureClaims() |
Claims |
DefaultClaims.setAudience(java.lang.String aud) |
Claims |
DefaultClaims.setDescription(java.lang.String description) |
Claims |
DefaultClaims.setExpiration(java.util.Date exp) |
Claims |
DefaultClaims.setId(java.lang.String jti) |
Claims |
DefaultClaims.setIssuedAt(java.util.Date iat) |
Claims |
DefaultClaims.setIssuer(java.lang.String iss) |
Claims |
DefaultClaims.setNotBefore(java.util.Date nbf) |
Claims |
DefaultClaims.setSubject(java.lang.String sub) |
限定符和类型 | 方法和说明 |
---|---|
Jws<Claims> |
DefaultJwtParser.parseClaimsJws(java.lang.String claimsJws) |
Jwt<Header,Claims> |
DefaultJwtParser.parseClaimsJwt(java.lang.String claimsJwt) |
限定符和类型 | 方法和说明 |
---|---|
JwtBuilder |
DefaultJwtBuilder.setClaims(Claims claims) |
限定符和类型 | 方法和说明 |
---|---|
static Claims |
JwtUtils.parseJWT(java.lang.String jwt)
解码 JWT
|
static Claims |
JwtUtils.parseJWT(java.lang.String jwt,
java.lang.String signatureKey)
解码 JWT
|