Class SignatureMethodsHMAC256Impl
- java.lang.Object
-
- org.apache.oltu.jose.jws.signature.impl.SignatureMethodsHMAC256Impl
-
- All Implemented Interfaces:
SignatureMethod<SymmetricKeyImpl,SymmetricKeyImpl>
public class SignatureMethodsHMAC256Impl extends Object implements SignatureMethod<SymmetricKeyImpl,SymmetricKeyImpl>
-
-
Constructor Summary
Constructors Constructor Description SignatureMethodsHMAC256Impl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
calculate(String header, String payload, SymmetricKeyImpl signingKey)
String
getAlgorithm()
boolean
verify(String signature, String header, String payload, SymmetricKeyImpl verifyingKey)
-
-
-
Method Detail
-
calculate
public String calculate(String header, String payload, SymmetricKeyImpl signingKey)
- Specified by:
calculate
in interfaceSignatureMethod<SymmetricKeyImpl,SymmetricKeyImpl>
-
verify
public boolean verify(String signature, String header, String payload, SymmetricKeyImpl verifyingKey)
- Specified by:
verify
in interfaceSignatureMethod<SymmetricKeyImpl,SymmetricKeyImpl>
-
getAlgorithm
public String getAlgorithm()
- Specified by:
getAlgorithm
in interfaceSignatureMethod<SymmetricKeyImpl,SymmetricKeyImpl>
-
-