| Package | Description |
|---|---|
| io.smallrye.jwt.algorithm | |
| io.smallrye.jwt.util |
| Modifier and Type | Method and Description |
|---|---|
static SignatureAlgorithm |
SignatureAlgorithm.fromAlgorithm(String algorithmName) |
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 | Field and Description |
|---|---|
protected static EnumMap<SignatureAlgorithm,Integer> |
KeyUtils.SIGNATURE_ALGORITHM_BITS |
| Modifier and Type | Method and Description |
|---|---|
static PrivateKey |
KeyUtils.decodePrivateKey(String pemEncoded,
SignatureAlgorithm algo)
Decode a PEM private key
|
static PublicKey |
KeyUtils.decodePublicKey(String pemEncoded,
SignatureAlgorithm algo)
Decode a PEM encoded public key string to an RSA or EllipticCurve PublicKey
|
static KeyPair |
KeyUtils.generateKeyPair(int keySize,
SignatureAlgorithm algo) |
static SecretKey |
KeyUtils.generateSecretKey(SignatureAlgorithm algo)
Generates a SecretKey.
|
static Key |
KeyUtils.getPrivateOrSecretSigningKey(org.jose4j.jwk.JsonWebKey currentJwk,
SignatureAlgorithm alg) |
static PrivateKey |
KeyUtils.readPrivateKey(String pemResName,
SignatureAlgorithm algo) |
static PublicKey |
KeyUtils.readPublicKey(String pemResName,
SignatureAlgorithm algo) |
static Key |
KeyUtils.readSigningKey(String location,
String kid,
SignatureAlgorithm alg) |
static PrivateKey |
KeyUtils.tryAsPemSigningPrivateKey(String content,
SignatureAlgorithm alg) |
Copyright © 2018–2021. All rights reserved.