| Modifier and Type | Method and Description |
|---|---|
boolean |
canVerify(Algorithm algorithm) |
static HMACVerifier |
newVerifier(byte[] bytes)
Return a new instance of the HMAC Verifier with the provided secret.
|
static HMACVerifier |
newVerifier(byte[] bytes,
CryptoProvider cryptoProvider)
Return a new instance of the HMAC Verifier with the provided secret.
|
static HMACVerifier |
newVerifier(Path path)
Return a new instance of the HMAC Verifier with the provided secret.
|
static HMACVerifier |
newVerifier(Path path,
CryptoProvider cryptoProvider)
Return a new instance of the HMAC Verifier with the provided secret.
|
static HMACVerifier |
newVerifier(String secret)
Return a new instance of the HMAC Verifier with the provided secret.
|
static HMACVerifier |
newVerifier(String secret,
CryptoProvider cryptoProvider)
Return a new instance of the HMAC Verifier with the provided secret.
|
void |
verify(Algorithm algorithm,
byte[] message,
byte[] signature)
Verify the signature of the encoded JWT payload.
|
public static HMACVerifier newVerifier(String secret)
secret - The secret.public static HMACVerifier newVerifier(Path path)
path - The path to the secret.public static HMACVerifier newVerifier(byte[] bytes)
bytes - The bytes of the secret.public static HMACVerifier newVerifier(String secret, CryptoProvider cryptoProvider)
secret - The secret.cryptoProvider - The crypto provider used to get the MAC digest algorithm.public static HMACVerifier newVerifier(Path path, CryptoProvider cryptoProvider)
path - The path to the secret.cryptoProvider - The crypto provider used to get the MAC digest algorithm.public static HMACVerifier newVerifier(byte[] bytes, CryptoProvider cryptoProvider)
bytes - The bytes of the secret.cryptoProvider - The crypto provider used to get the MAC digest algorithm.public boolean canVerify(Algorithm algorithm)
Copyright © 2020. All rights reserved.