Package org.keycloak.crypto
Class MacSecretSignatureProvider
- java.lang.Object
-
- org.keycloak.crypto.MacSecretSignatureProvider
-
- All Implemented Interfaces:
SignatureProvider
,Provider
public class MacSecretSignatureProvider extends Object implements SignatureProvider
-
-
Constructor Summary
Constructors Constructor Description MacSecretSignatureProvider(KeycloakSession session, String algorithm)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isAsymmetricAlgorithm()
SignatureSignerContext
signer()
SignatureSignerContext
signer(KeyWrapper key)
SignatureVerifierContext
verifier(String kid)
SignatureVerifierContext
verifier(KeyWrapper key)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.keycloak.crypto.SignatureProvider
close
-
-
-
-
Constructor Detail
-
MacSecretSignatureProvider
public MacSecretSignatureProvider(KeycloakSession session, String algorithm)
-
-
Method Detail
-
signer
public SignatureSignerContext signer() throws SignatureException
- Specified by:
signer
in interfaceSignatureProvider
- Throws:
SignatureException
-
signer
public SignatureSignerContext signer(KeyWrapper key) throws SignatureException
- Specified by:
signer
in interfaceSignatureProvider
- Throws:
SignatureException
-
verifier
public SignatureVerifierContext verifier(String kid) throws VerificationException
- Specified by:
verifier
in interfaceSignatureProvider
- Throws:
VerificationException
-
verifier
public SignatureVerifierContext verifier(KeyWrapper key) throws VerificationException
- Specified by:
verifier
in interfaceSignatureProvider
- Throws:
VerificationException
-
isAsymmetricAlgorithm
public boolean isAsymmetricAlgorithm()
- Specified by:
isAsymmetricAlgorithm
in interfaceSignatureProvider
-
-