| 程序包 | 说明 |
|---|---|
| com.fr.cert.token | |
| com.fr.cert.token.impl | |
| com.fr.cert.token.impl.crypto | |
| com.fr.security |
| 限定符和类型 | 方法和说明 |
|---|---|
static SignatureAlgorithm |
SignatureAlgorithm.forName(java.lang.String value)
Looks up and returns the corresponding
SignatureAlgorithm enum instance based on a
case-insensitive name comparison. |
static SignatureAlgorithm |
SignatureAlgorithm.valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static SignatureAlgorithm[] |
SignatureAlgorithm.values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
| 限定符和类型 | 方法和说明 |
|---|---|
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.
|
| 限定符和类型 | 方法和说明 |
|---|---|
protected JwtSignatureValidator |
DefaultJwtParser.createSignatureValidator(SignatureAlgorithm alg,
java.security.Key key) |
protected JwtSigner |
DefaultJwtBuilder.createSigner(SignatureAlgorithm alg,
java.security.Key key) |
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) |
| 限定符和类型 | 方法和说明 |
|---|---|
SignatureValidator |
SignatureValidatorFactory.createSignatureValidator(SignatureAlgorithm alg,
java.security.Key key) |
SignatureValidator |
DefaultSignatureValidatorFactory.createSignatureValidator(SignatureAlgorithm alg,
java.security.Key key) |
Signer |
SignerFactory.createSigner(SignatureAlgorithm alg,
java.security.Key key) |
Signer |
DefaultSignerFactory.createSigner(SignatureAlgorithm alg,
java.security.Key key) |
static javax.crypto.SecretKey |
MacProvider.generateKey(SignatureAlgorithm alg)
Generates a new secure-random secret key of a length suitable for creating and verifying HMAC signatures
according to the specified
SignatureAlgorithm using JJWT's default SecureRandom instance. |
static javax.crypto.SecretKey |
MacProvider.generateKey(SignatureAlgorithm alg,
java.security.SecureRandom random)
Generates a new secure-random secret key of a length suitable for creating and verifying HMAC signatures
according to the specified
SignatureAlgorithm using the specified SecureRandom number generator. |
static java.security.KeyPair |
EllipticCurveProvider.generateKeyPair(SignatureAlgorithm alg)
Generates a new secure-random key pair of sufficient strength for the specified Elliptic Curve
SignatureAlgorithm (must be one of ES256, ES384 or ES512) using JJWT's default SecureRandom instance. |
static java.security.KeyPair |
EllipticCurveProvider.generateKeyPair(SignatureAlgorithm alg,
java.security.SecureRandom random)
Generates a new secure-random key pair of sufficient strength for the specified Elliptic Curve
SignatureAlgorithm (must be one of ES256, ES384 or ES512) using the specified SecureRandom random number generator. |
static java.security.KeyPair |
EllipticCurveProvider.generateKeyPair(java.lang.String jcaAlgorithmName,
java.lang.String jcaProviderName,
SignatureAlgorithm alg,
java.security.SecureRandom random)
Generates a new secure-random key pair of sufficient strength for the specified Elliptic Curve
SignatureAlgorithm (must be one of ES256, ES384 or ES512) using the specified SecureRandom random number generator via the specified JCA provider and algorithm name. |
static int |
EllipticCurveProvider.getSignatureByteArrayLength(SignatureAlgorithm alg)
Returns the expected signature byte array length (R + S parts) for
the specified ECDSA algorithm.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static java.lang.String |
JwtUtils.createJWT(java.lang.String issuer,
java.lang.String subject,
java.lang.String audience,
java.util.Date expiration,
java.util.Date notBeforeTime,
java.util.Date issuerAtTime,
java.lang.String jwtId,
SignatureAlgorithm algorithm,
java.security.Key secretKey)
创建完整参数JWT
|