org.opengts.geocoder.google
Class GoogleSig

java.lang.Object
  extended by org.opengts.geocoder.google.GoogleSig

public class GoogleSig
extends java.lang.Object


Constructor Summary
GoogleSig(java.lang.String keyStr)
           
 
Method Summary
static void main(java.lang.String[] argv)
           
static void SetMACProvider(MACProvider mp)
           
 java.lang.String signURL(java.lang.String urlStr)
          Calculate and append Google "&signature=" hash.
 boolean validateURL(java.lang.String urlStr)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GoogleSig

public GoogleSig(java.lang.String keyStr)
Method Detail

SetMACProvider

public static void SetMACProvider(MACProvider mp)

signURL

public java.lang.String signURL(java.lang.String urlStr)
Calculate and append Google "&signature=" hash.

Parameters:
urlStr - The URL string to which the hash is appended.
Returns:
The URL string with the "&signature=" hash appended.

validateURL

public boolean validateURL(java.lang.String urlStr)

main

public static void main(java.lang.String[] argv)