Package org.keycloak.crypto
Class MacSignatureSignerContext
- java.lang.Object
-
- org.keycloak.crypto.MacSignatureSignerContext
-
- All Implemented Interfaces:
SignatureSignerContext
- Direct Known Subclasses:
ServerMacSignatureSignerContext
public class MacSignatureSignerContext extends Object implements SignatureSignerContext
-
-
Constructor Summary
Constructors Constructor Description MacSignatureSignerContext(KeyWrapper key)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAlgorithm()
String
getHashAlgorithm()
String
getKid()
byte[]
sign(byte[] data)
-
-
-
Constructor Detail
-
MacSignatureSignerContext
public MacSignatureSignerContext(KeyWrapper key) throws SignatureException
- Throws:
SignatureException
-
-
Method Detail
-
getKid
public String getKid()
- Specified by:
getKid
in interfaceSignatureSignerContext
-
getAlgorithm
public String getAlgorithm()
- Specified by:
getAlgorithm
in interfaceSignatureSignerContext
-
getHashAlgorithm
public String getHashAlgorithm()
- Specified by:
getHashAlgorithm
in interfaceSignatureSignerContext
-
sign
public byte[] sign(byte[] data) throws SignatureException
- Specified by:
sign
in interfaceSignatureSignerContext
- Throws:
SignatureException
-
-