ch.hsr.bieridee.auth
Class HmacSha256Verifier

java.lang.Object
  extended by ch.hsr.bieridee.auth.HmacSha256Verifier
All Implemented Interfaces:
org.restlet.security.Verifier

public class HmacSha256Verifier
extends java.lang.Object
implements org.restlet.security.Verifier

This verifier verifies the HMAC-SHA256 auth header.


Field Summary
 
Fields inherited from interface org.restlet.security.Verifier
RESULT_INVALID, RESULT_MISSING, RESULT_STALE, RESULT_UNKNOWN, RESULT_UNSUPPORTED, RESULT_VALID
 
Constructor Summary
HmacSha256Verifier()
           
 
Method Summary
 int verify(org.restlet.Request request, org.restlet.Response response)
          Attempts to verify the credentials provided by the client user sending the request.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HmacSha256Verifier

public HmacSha256Verifier()
Method Detail

verify

public int verify(org.restlet.Request request,
                  org.restlet.Response response)
Attempts to verify the credentials provided by the client user sending the request.

Specified by:
verify in interface org.restlet.security.Verifier
Parameters:
request - The request sent.
response - The response to update.
Returns:
Result of the verification based on the RESULT_* constants.