Package org.keycloak.crypto
Class MacSignatureVerifierContext
- java.lang.Object
-
- org.keycloak.crypto.MacSignatureVerifierContext
-
- All Implemented Interfaces:
SignatureVerifierContext
- Direct Known Subclasses:
ClientMacSignatureVerifierContext
,ServerMacSignatureVerifierContext
public class MacSignatureVerifierContext extends Object implements SignatureVerifierContext
-
-
Constructor Summary
Constructors Constructor Description MacSignatureVerifierContext(KeyWrapper key)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAlgorithm()
String
getKid()
boolean
verify(byte[] data, byte[] signature)
-
-
-
Constructor Detail
-
MacSignatureVerifierContext
public MacSignatureVerifierContext(KeyWrapper key)
-
-
Method Detail
-
getKid
public String getKid()
- Specified by:
getKid
in interfaceSignatureVerifierContext
-
getAlgorithm
public String getAlgorithm()
- Specified by:
getAlgorithm
in interfaceSignatureVerifierContext
-
verify
public boolean verify(byte[] data, byte[] signature) throws VerificationException
- Specified by:
verify
in interfaceSignatureVerifierContext
- Throws:
VerificationException
-
-