Package | Description |
---|---|
io.jsonwebtoken | |
io.jsonwebtoken.security |
Modifier and Type | Method and Description |
---|---|
static SignatureAlgorithm |
SignatureAlgorithm.forName(String value)
Deprecated.
Looks up and returns the corresponding
SignatureAlgorithm enum instance based on a
case-insensitive name comparison. |
static SignatureAlgorithm |
SignatureAlgorithm.forSigningKey(Key key)
Deprecated.
Returns the recommended signature algorithm to be used with the specified key according to the following
heuristics:
SecretKey
1
256 <= size <= 383 2
HS256
SecretKey
1
384 <= size <= 511
HS384
SecretKey
1
512 <= size
HS512
ECKey
instanceof
256 <= size <= 383 3
ES256
ECKey
instanceof
384 <= size <= 511
ES384
ECKey
instanceof
4096 <= size
ES512
RSAKey
instanceof
2048 <= size <= 3071 4,5
RS256
RSAKey
instanceof
3072 <= size <= 4095 5
RS384
RSAKey
instanceof
4096 <= size 5
RS512
|
static SignatureAlgorithm |
SignatureAlgorithm.valueOf(String name)
Deprecated.
Returns the enum constant of this type with the specified name.
|
static SignatureAlgorithm[] |
SignatureAlgorithm.values()
Deprecated.
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
JwtBuilder |
JwtBuilder.signWith(Key key,
SignatureAlgorithm alg)
Deprecated.
since 0.12.0 to use the more flexible
JwtBuilder.signWith(Key, SecureDigestAlgorithm) . |
JwtBuilder |
JwtBuilder.signWith(SignatureAlgorithm alg,
byte[] secretKey)
Deprecated.
as of 0.10.0: use
Keys .hmacShaKeyFor(bytes) to
obtain the Key and then invoke JwtBuilder.signWith(Key) or
JwtBuilder.signWith(Key, SecureDigestAlgorithm) .
This method will be removed in the 1.0 release. |
JwtBuilder |
JwtBuilder.signWith(SignatureAlgorithm alg,
Key key)
Deprecated.
since 0.10.0. Use
JwtBuilder.signWith(Key, SecureDigestAlgorithm) instead.
This method will be removed before the 1.0 release. |
JwtBuilder |
JwtBuilder.signWith(SignatureAlgorithm alg,
String base64EncodedSecretKey)
Deprecated.
as of 0.10.0: use
JwtBuilder.signWith(Key) or JwtBuilder.signWith(Key, SignatureAlgorithm) instead. This
method will be removed in the 1.0 release. |
Modifier and Type | Method and Description |
---|---|
static KeyPair |
Keys.keyPairFor(SignatureAlgorithm alg)
Deprecated.
since 0.12.0 in favor of your preferred
SignatureAlgorithm instance's
keyPair() builder method directly. |
static SecretKey |
Keys.secretKeyFor(SignatureAlgorithm alg)
Deprecated.
since 0.12.0. Use your preferred
MacAlgorithm instance's
key() builder method directly. |
Copyright © 2014–2024 jsonwebtoken.io. All rights reserved.