| Package | Description |
|---|---|
| com.auth0.jwt | |
| com.auth0.jwt.algorithms | |
| com.auth0.jwt.exceptions |
| Modifier and Type | Method and Description |
|---|---|
static Verification |
JWT.require(Algorithm algorithm)
Returns a
JWTVerifier builder with the algorithm to be used to validate token signature. |
String |
JWTCreator.Builder.sign(Algorithm algorithm)
Creates a new JWT and signs is with the given algorithm
|
| Modifier and Type | Method and Description |
|---|---|
static Algorithm |
Algorithm.ECDSA256(ECDSAKeyProvider keyProvider)
Creates a new Algorithm instance using SHA256withECDSA.
|
static Algorithm |
Algorithm.ECDSA256(ECKey key)
Deprecated.
|
static Algorithm |
Algorithm.ECDSA256(ECPublicKey publicKey,
ECPrivateKey privateKey)
Creates a new Algorithm instance using SHA256withECDSA.
|
static Algorithm |
Algorithm.ECDSA384(ECDSAKeyProvider keyProvider)
Creates a new Algorithm instance using SHA384withECDSA.
|
static Algorithm |
Algorithm.ECDSA384(ECKey key)
Deprecated.
|
static Algorithm |
Algorithm.ECDSA384(ECPublicKey publicKey,
ECPrivateKey privateKey)
Creates a new Algorithm instance using SHA384withECDSA.
|
static Algorithm |
Algorithm.ECDSA512(ECDSAKeyProvider keyProvider)
Creates a new Algorithm instance using SHA512withECDSA.
|
static Algorithm |
Algorithm.ECDSA512(ECKey key)
Deprecated.
|
static Algorithm |
Algorithm.ECDSA512(ECPublicKey publicKey,
ECPrivateKey privateKey)
Creates a new Algorithm instance using SHA512withECDSA.
|
static Algorithm |
Algorithm.HMAC256(byte[] secret)
Creates a new Algorithm instance using HmacSHA256.
|
static Algorithm |
Algorithm.HMAC256(String secret)
Creates a new Algorithm instance using HmacSHA256.
|
static Algorithm |
Algorithm.HMAC384(byte[] secret)
Creates a new Algorithm instance using HmacSHA384.
|
static Algorithm |
Algorithm.HMAC384(String secret)
Creates a new Algorithm instance using HmacSHA384.
|
static Algorithm |
Algorithm.HMAC512(byte[] secret)
Creates a new Algorithm instance using HmacSHA512.
|
static Algorithm |
Algorithm.HMAC512(String secret)
Creates a new Algorithm instance using HmacSHA512.
|
static Algorithm |
Algorithm.none() |
static Algorithm |
Algorithm.RSA256(RSAKey key)
Deprecated.
|
static Algorithm |
Algorithm.RSA256(RSAKeyProvider keyProvider)
Creates a new Algorithm instance using SHA256withRSA.
|
static Algorithm |
Algorithm.RSA256(RSAPublicKey publicKey,
RSAPrivateKey privateKey)
Creates a new Algorithm instance using SHA256withRSA.
|
static Algorithm |
Algorithm.RSA384(RSAKey key)
Deprecated.
|
static Algorithm |
Algorithm.RSA384(RSAKeyProvider keyProvider)
Creates a new Algorithm instance using SHA384withRSA.
|
static Algorithm |
Algorithm.RSA384(RSAPublicKey publicKey,
RSAPrivateKey privateKey)
Creates a new Algorithm instance using SHA384withRSA.
|
static Algorithm |
Algorithm.RSA512(RSAKey key)
Deprecated.
|
static Algorithm |
Algorithm.RSA512(RSAKeyProvider keyProvider)
Creates a new Algorithm instance using SHA512withRSA.
|
static Algorithm |
Algorithm.RSA512(RSAPublicKey publicKey,
RSAPrivateKey privateKey)
Creates a new Algorithm instance using SHA512withRSA.
|
| Constructor and Description |
|---|
SignatureGenerationException(Algorithm algorithm,
Throwable cause) |
SignatureVerificationException(Algorithm algorithm) |
SignatureVerificationException(Algorithm algorithm,
Throwable cause) |
Copyright © 2017. All rights reserved.