程序包 | 说明 |
---|---|
com.fr.cert.token | |
com.fr.cert.token.impl |
限定符和类型 | 接口和说明 |
---|---|
interface |
JwsHeader<T extends JwsHeader<T>>
A JWS header.
|
限定符和类型 | 方法和说明 |
---|---|
static JwsHeader |
Jwts.jwsHeader()
Returns a new
JwsHeader instance suitable for digitally signed JWTs (aka 'JWS's). |
static JwsHeader |
Jwts.jwsHeader(java.util.Map<java.lang.String,java.lang.Object> header)
Returns a new
JwsHeader instance suitable for digitally signed JWTs (aka 'JWS's), populated with the
specified name/value pairs. |
限定符和类型 | 方法和说明 |
---|---|
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.
|
java.security.Key |
SigningKeyResolverAdapter.resolveSigningKey(JwsHeader header,
java.lang.String plaintext) |
java.security.Key |
SigningKeyResolver.resolveSigningKey(JwsHeader header,
java.lang.String plaintext)
Returns the signing key that should be used to validate a digital signature for the Plaintext JWS with the
specified header and plaintext payload.
|
byte[] |
SigningKeyResolverAdapter.resolveSigningKeyBytes(JwsHeader header,
Claims claims)
Convenience method invoked by
SigningKeyResolverAdapter.resolveSigningKey(JwsHeader, Claims) that obtains the necessary signing
key bytes. |
byte[] |
SigningKeyResolverAdapter.resolveSigningKeyBytes(JwsHeader header,
java.lang.String payload)
Convenience method invoked by
SigningKeyResolverAdapter.resolveSigningKey(JwsHeader, String) that obtains the necessary signing
key bytes. |
限定符和类型 | 类和说明 |
---|---|
class |
DefaultJwsHeader |
限定符和类型 | 方法和说明 |
---|---|
JwsHeader |
DefaultJws.getHeader() |
JwsHeader |
DefaultJwsHeader.setAlgorithm(java.lang.String alg) |
JwsHeader |
DefaultJwsHeader.setKeyId(java.lang.String kid) |
构造器和说明 |
---|
DefaultJws(JwsHeader header,
B body,
java.lang.String signature) |