Package org.keycloak.crypto
Interface SignatureProvider
-
- All Superinterfaces:
Provider
- All Known Implementing Classes:
AsymmetricSignatureProvider
,ECDSASignatureProvider
,MacSecretSignatureProvider
public interface SignatureProvider extends Provider
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static void
checkKeyForSignature(KeyWrapper key, String algorithm, String type)
static void
checkKeyForVerification(KeyWrapper key, String algorithm, String type)
default void
close()
boolean
isAsymmetricAlgorithm()
SignatureSignerContext
signer()
SignatureSignerContext
signer(KeyWrapper key)
SignatureVerifierContext
verifier(String kid)
SignatureVerifierContext
verifier(KeyWrapper key)
-
-
-
Method Detail
-
checkKeyForSignature
static void checkKeyForSignature(KeyWrapper key, String algorithm, String type) throws SignatureException
- Throws:
SignatureException
-
checkKeyForVerification
static void checkKeyForVerification(KeyWrapper key, String algorithm, String type) throws VerificationException
- Throws:
VerificationException
-
signer
SignatureSignerContext signer() throws SignatureException
- Throws:
SignatureException
-
signer
SignatureSignerContext signer(KeyWrapper key) throws SignatureException
- Throws:
SignatureException
-
verifier
SignatureVerifierContext verifier(String kid) throws VerificationException
- Throws:
VerificationException
-
verifier
SignatureVerifierContext verifier(KeyWrapper key) throws VerificationException
- Throws:
VerificationException
-
isAsymmetricAlgorithm
boolean isAsymmetricAlgorithm()
-
-