com.dyuproject.oauth
Class SimpleNonceAndTimestamp

java.lang.Object
  extended by com.dyuproject.oauth.SimpleNonceAndTimestamp
All Implemented Interfaces:
NonceAndTimestamp

public final class SimpleNonceAndTimestamp
extends Object
implements NonceAndTimestamp

A simple nonce and timestamp generator.

Author:
David Yu
Date created:
Jun 1, 2009

Field Summary
static SimpleNonceAndTimestamp DEFAULT
          The default instance.
 
Constructor Summary
SimpleNonceAndTimestamp()
           
 
Method Summary
static SimpleNonceAndTimestamp getDefault()
          Gets the default instance.
 void put(UrlEncodedParameterMap params, String consumerKey)
          Puts the generated nonce and timestamp on the params which could optionally be derived from the consumerKey.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT

public static final SimpleNonceAndTimestamp DEFAULT
The default instance.

Constructor Detail

SimpleNonceAndTimestamp

public SimpleNonceAndTimestamp()
Method Detail

getDefault

public static SimpleNonceAndTimestamp getDefault()
Gets the default instance.


put

public void put(UrlEncodedParameterMap params,
                String consumerKey)
Description copied from interface: NonceAndTimestamp
Puts the generated nonce and timestamp on the params which could optionally be derived from the consumerKey.

Specified by:
put in interface NonceAndTimestamp


Copyright © 2008-2013. All Rights Reserved.