public static final class Jwts.ENC extends Object
public static final) constant for direct type-safe reference in application code. For example:
Jwts.builder()
// ... etc ...
.encryptWith(aKey, Jwts.ENC.A256GCM) // or A128GCM, A192GCM, etc...
.build();
They are also available together as a Registry instance via the get() method.
get()| Modifier and Type | Field and Description |
|---|---|
static AeadAlgorithm |
A128CBC_HS256
AES_128_CBC_HMAC_SHA_256 authenticated encryption algorithm as defined by
RFC 7518, Section 5.2.3. |
static AeadAlgorithm |
A128GCM
"AES GCM using 128-bit key" as defined by
RFC 7518, Section 5.31.
|
static AeadAlgorithm |
A192CBC_HS384
AES_192_CBC_HMAC_SHA_384 authenticated encryption algorithm, as defined by
RFC 7518, Section 5.2.4. |
static AeadAlgorithm |
A192GCM
"AES GCM using 192-bit key" as defined by
RFC 7518, Section 5.31.
|
static AeadAlgorithm |
A256CBC_HS512
AES_256_CBC_HMAC_SHA_512 authenticated encryption algorithm, as defined by
RFC 7518, Section 5.2.5. |
static AeadAlgorithm |
A256GCM
"AES GCM using 256-bit key" as defined by
RFC 7518, Section 5.31.
|
| Modifier and Type | Method and Description |
|---|---|
static Registry<String,AeadAlgorithm> |
get()
Returns all standard JWA Cryptographic
Algorithms for Content Encryption defined in the
JSON Web Signature and Encryption
Algorithms Registry.
|
public static final AeadAlgorithm A128CBC_HS256
AES_128_CBC_HMAC_SHA_256 authenticated encryption algorithm as defined by
RFC 7518, Section 5.2.3. This algorithm
requires a 256-bit (32 byte) key.public static final AeadAlgorithm A192CBC_HS384
AES_192_CBC_HMAC_SHA_384 authenticated encryption algorithm, as defined by
RFC 7518, Section 5.2.4. This algorithm
requires a 384-bit (48 byte) key.public static final AeadAlgorithm A256CBC_HS512
AES_256_CBC_HMAC_SHA_512 authenticated encryption algorithm, as defined by
RFC 7518, Section 5.2.5. This algorithm
requires a 512-bit (64 byte) key.public static final AeadAlgorithm A128GCM
1 Requires Java 8 or a compatible JCA Provider (like BouncyCastle) in the runtime classpath. If on Java 7 or earlier, BouncyCastle will be used automatically if found in the runtime classpath.
public static final AeadAlgorithm A192GCM
1 Requires Java 8 or a compatible JCA Provider (like BouncyCastle) in the runtime classpath. If on Java 7 or earlier, BouncyCastle will be used automatically if found in the runtime classpath.
public static final AeadAlgorithm A256GCM
1 Requires Java 8 or a compatible JCA Provider (like BouncyCastle) in the runtime classpath. If on Java 7 or earlier, BouncyCastle will be used automatically if found in the runtime classpath.
public static Registry<String,AeadAlgorithm> get()
Copyright © 2014–2024 jsonwebtoken.io. All rights reserved.