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