Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## net.sourceforge.pebble.trackback
Class TrackBackTokenManager

    java.lang.Object
      net.sourceforge.pebble.trackback.TrackBackTokenManager

    public class TrackBackTokenManager

extends java.lang.Object

Manages tokens for generating TrackBack links.

Author:
  Simon Brown

Method Summary
`void` | `expire(java.lang.String token)` Expires a given token.
`java.lang.String` | `generateToken()` Generates a new token with a fixed time to live.
`static TrackBackTokenManager` | `getInstance()` Gets the singleton instance of this class.
`boolean` | `isValid(java.lang.String token)` Determines whether a given token is valid.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Method Detail

### getInstance

    public static TrackBackTokenManager getInstance()

  Gets the singleton instance of this class.

  Returns:
    a TrackBackTokenManager instance

### generateToken

    public java.lang.String generateToken()

  Generates a new token with a fixed time to live.

  Returns:
    a new token

### isValid

    public boolean isValid(java.lang.String token)

  Determines whether a given token is valid.

  Parameters:
    `token` - the token to test
  Returns:
    true if the token is valid and hasn't expired, false otherwise

### expire

    public void expire(java.lang.String token)

  Expires a given token.

  Parameters:
    `token` - the token to be expired

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2003-2006, Simon Brown. All Rights Reserved.