Package io.fusionauth.jwt.ec
Class ECVerifier
java.lang.Object
io.fusionauth.jwt.ec.ECVerifier
- All Implemented Interfaces:
Verifier
- Author:
- Daniel DeGroff
-
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic ECVerifiernewVerifier(byte[] bytes) Return a new instance of the EC Verifier with the provided public key.static ECVerifiernewVerifier(byte[] bytes, CryptoProvider cryptoProvider) Return a new instance of the EC Verifier with the provided public key.static ECVerifiernewVerifier(String publicKey) Return a new instance of the EC Verifier with the provided public key.static ECVerifiernewVerifier(String publicKey, CryptoProvider cryptoProvider) Return a new instance of the EC Verifier with the provided public key.static ECVerifiernewVerifier(Path path) Return a new instance of the EC Verifier with the provided public key.static ECVerifiernewVerifier(Path path, CryptoProvider cryptoProvider) Return a new instance of the EC Verifier with the provided public key.static ECVerifiernewVerifier(PublicKey publicKey) Return a new instance of the EC Verifier with the provided public key.static ECVerifiernewVerifier(PublicKey publicKey, CryptoProvider cryptoProvider) Return a new instance of the EC Verifier with the provided public key.voidVerify the signature of the encoded JWT payload.
-
Method Details
-
newVerifier
Return a new instance of the EC Verifier with the provided public key.- Parameters:
publicKey- The EC public key PEM.- Returns:
- a new instance of the EC verifier.
-
newVerifier
Return a new instance of the EC Verifier with the provided public key.- Parameters:
publicKey- The EC public key object.- Returns:
- a new instance of the EC verifier.
-
newVerifier
Return a new instance of the EC Verifier with the provided public key.- Parameters:
path- The path to the EC public key PEM.- Returns:
- a new instance of the EC verifier.
-
newVerifier
Return a new instance of the EC Verifier with the provided public key.- Parameters:
bytes- The bytes of the EC public key PEM.- Returns:
- a new instance of the EC verifier.
-
newVerifier
Return a new instance of the EC Verifier with the provided public key.- Parameters:
publicKey- The EC public key PEM.cryptoProvider- The crypto provider used to get the ECDSA Signature algorithm.- Returns:
- a new instance of the EC verifier.
-
newVerifier
Return a new instance of the EC Verifier with the provided public key.- Parameters:
publicKey- The EC public key object.cryptoProvider- The crypto provider used to get the ECDSA Signature algorithm.- Returns:
- a new instance of the EC verifier.
-
newVerifier
Return a new instance of the EC Verifier with the provided public key.- Parameters:
path- The path to the EC public key PEM.cryptoProvider- The crypto provider used to get the ECDSA Signature algorithm.- Returns:
- a new instance of the EC verifier.
-
newVerifier
Return a new instance of the EC Verifier with the provided public key.- Parameters:
bytes- The bytes of the EC public key PEM.cryptoProvider- The crypto provider used to get the ECDSA Signature algorithm.- Returns:
- a new instance of the EC verifier.
-
canVerify
-
verify
Description copied from interface:VerifierVerify the signature of the encoded JWT payload.
-