Changeset 265 for tools

Show
Ignore:
Timestamp:
02/25/09 11:49:01 (13 months ago)
Author:
anton
Message:

Some debug output added

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • tools/routingservice/trunk/src/jp/co/orkney/restlet/security/MD5SecurityHelper.java

    r263 r265  
    1919 
    2020                MessageDigest algorithm = MessageDigest.getInstance("MD5"); 
     21                 
     22                log.write("clientId = " + clientId + ", apiKey = "+apiKey + ", secretKey = " +secretKey, 2); 
    2123 
     24                log.write(signature +" == " + getHash(clientId, algorithm), 2); 
     25                log.write(apiKey +" == " + getHash(clientId+secretKey, algorithm), 2); 
     26                 
    2227                verifies = signature.equals(getHash(clientId, algorithm)); 
    2328                isValid = apiKey.equals(getHash(clientId+secretKey, algorithm));