Package | Description |
---|---|
io.jsonwebtoken | |
io.jsonwebtoken.impl | |
io.jsonwebtoken.impl.crypto |
Modifier and Type | Method and Description |
---|---|
static SignatureAlgorithm |
SignatureAlgorithm.forName(String value)
Looks up and returns the corresponding
SignatureAlgorithm enum instance based on a
case-insensitive name comparison. |
static SignatureAlgorithm |
SignatureAlgorithm.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SignatureAlgorithm[] |
SignatureAlgorithm.values()
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(SignatureAlgorithm alg,
byte[] secretKey)
Signs the constructed JWT using the specified algorithm with the specified key, producing a JWS.
|
JwtBuilder |
JwtBuilder.signWith(SignatureAlgorithm alg,
Key key)
Signs the constructed JWT using the specified algorithm with the specified key, producing a JWS.
|
JwtBuilder |
JwtBuilder.signWith(SignatureAlgorithm alg,
String base64EncodedSecretKey)
Signs the constructed JWT using the specified algorithm with the specified key, producing a JWS.
|
Modifier and Type | Method and Description |
---|---|
protected JwtSignatureValidator |
DefaultJwtParser.createSignatureValidator(SignatureAlgorithm alg,
Key key) |
protected JwtSigner |
DefaultJwtBuilder.createSigner(SignatureAlgorithm alg,
Key key) |
JwtBuilder |
DefaultJwtBuilder.signWith(SignatureAlgorithm alg,
byte[] secretKey) |
JwtBuilder |
DefaultJwtBuilder.signWith(SignatureAlgorithm alg,
Key key) |
JwtBuilder |
DefaultJwtBuilder.signWith(SignatureAlgorithm alg,
String base64EncodedSecretKey) |
Modifier and Type | Method and Description |
---|---|
SignatureValidator |
SignatureValidatorFactory.createSignatureValidator(SignatureAlgorithm alg,
Key key) |
SignatureValidator |
DefaultSignatureValidatorFactory.createSignatureValidator(SignatureAlgorithm alg,
Key key) |
Signer |
SignerFactory.createSigner(SignatureAlgorithm alg,
Key key) |
Signer |
DefaultSignerFactory.createSigner(SignatureAlgorithm alg,
Key key) |
static 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 SecretKey |
MacProvider.generateKey(SignatureAlgorithm alg,
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 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 KeyPair |
EllipticCurveProvider.generateKeyPair(SignatureAlgorithm alg,
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 KeyPair |
EllipticCurveProvider.generateKeyPair(String jcaAlgorithmName,
String jcaProviderName,
SignatureAlgorithm alg,
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.
|
Constructor and Description |
---|
DefaultJwtSignatureValidator(SignatureAlgorithm alg,
Key key) |
DefaultJwtSignatureValidator(SignatureValidatorFactory factory,
SignatureAlgorithm alg,
Key key) |
DefaultJwtSigner(SignatureAlgorithm alg,
Key key) |
DefaultJwtSigner(SignerFactory factory,
SignatureAlgorithm alg,
Key key) |
EllipticCurveProvider(SignatureAlgorithm alg,
Key key) |
EllipticCurveSignatureValidator(SignatureAlgorithm alg,
Key key) |
EllipticCurveSigner(SignatureAlgorithm alg,
Key key) |
MacProvider(SignatureAlgorithm alg,
Key key) |
MacSigner(SignatureAlgorithm alg,
byte[] key) |
MacSigner(SignatureAlgorithm alg,
Key key) |
MacValidator(SignatureAlgorithm alg,
Key key) |
RsaProvider(SignatureAlgorithm alg,
Key key) |
RsaSignatureValidator(SignatureAlgorithm alg,
Key key) |
RsaSigner(SignatureAlgorithm alg,
Key key) |
Copyright © 2016. All rights reserved.