This project has retired. For details please refer to its Attic page.
SignatureMethodsHMAC256Impl (Apache Oltu - JOSE 2-SNAPSHOT API)

org.apache.oltu.jose.jws.signature.impl
Class SignatureMethodsHMAC256Impl

java.lang.Object
  extended by 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
SignatureMethodsHMAC256Impl()
           
 
Method Summary
 String calculate(String header, String payload, SymmetricKeyImpl signingKey)
           
 String getAlgorithm()
           
 boolean verify(String signature, String header, String payload, SymmetricKeyImpl verifyingKey)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SignatureMethodsHMAC256Impl

public SignatureMethodsHMAC256Impl()
Method Detail

calculate

public String calculate(String header,
                        String payload,
                        SymmetricKeyImpl signingKey)
Specified by:
calculate in interface SignatureMethod<SymmetricKeyImpl,SymmetricKeyImpl>

verify

public boolean verify(String signature,
                      String header,
                      String payload,
                      SymmetricKeyImpl verifyingKey)
Specified by:
verify in interface SignatureMethod<SymmetricKeyImpl,SymmetricKeyImpl>

getAlgorithm

public String getAlgorithm()
Specified by:
getAlgorithm in interface SignatureMethod<SymmetricKeyImpl,SymmetricKeyImpl>


Copyright © 2010–2014 The Apache Software Foundation. All rights reserved.