Modifier and Type | Method and Description |
---|---|
boolean |
canVerify(Algorithm algorithm) |
static ECVerifier |
newVerifier(byte[] bytes)
Return a new instance of the EC Verifier with the provided public key.
|
static ECVerifier |
newVerifier(byte[] bytes,
CryptoProvider cryptoProvider)
Return a new instance of the EC Verifier with the provided public key.
|
static ECVerifier |
newVerifier(ECPublicKey publicKey)
Return a new instance of the EC Verifier with the provided public key.
|
static ECVerifier |
newVerifier(ECPublicKey publicKey,
CryptoProvider cryptoProvider)
Return a new instance of the EC Verifier with the provided public key.
|
static ECVerifier |
newVerifier(Path path)
Return a new instance of the EC Verifier with the provided public key.
|
static ECVerifier |
newVerifier(Path path,
CryptoProvider cryptoProvider)
Return a new instance of the EC Verifier with the provided public key.
|
static ECVerifier |
newVerifier(String publicKey)
Return a new instance of the EC Verifier with the provided public key.
|
static ECVerifier |
newVerifier(String publicKey,
CryptoProvider cryptoProvider)
Return a new instance of the EC Verifier with the provided public key.
|
void |
verify(Algorithm algorithm,
byte[] message,
byte[] signature)
Verify the signature of the encoded JWT payload.
|
public static ECVerifier newVerifier(String publicKey)
publicKey
- The EC public key PEM.public static ECVerifier newVerifier(ECPublicKey publicKey)
publicKey
- The EC public key object.public static ECVerifier newVerifier(Path path)
path
- The path to the EC public key PEM.public static ECVerifier newVerifier(byte[] bytes)
bytes
- The bytes of the EC public key PEM.public static ECVerifier newVerifier(String publicKey, CryptoProvider cryptoProvider)
publicKey
- The EC public key PEM.cryptoProvider
- The crypto provider used to get the ECDSA Signature algorithm.public static ECVerifier newVerifier(ECPublicKey publicKey, CryptoProvider cryptoProvider)
publicKey
- The EC public key object.cryptoProvider
- The crypto provider used to get the ECDSA Signature algorithm.public static ECVerifier newVerifier(Path path, CryptoProvider cryptoProvider)
path
- The path to the EC public key PEM.cryptoProvider
- The crypto provider used to get the ECDSA Signature algorithm.public static ECVerifier newVerifier(byte[] bytes, CryptoProvider cryptoProvider)
bytes
- The bytes of the EC public key PEM.cryptoProvider
- The crypto provider used to get the ECDSA Signature algorithm.public boolean canVerify(Algorithm algorithm)
Copyright © 2021. All rights reserved.