toolbox.oracle.siebel.session.beans
Class Token

java.lang.Object
  extended by toolbox.oracle.siebel.session.beans.Token

public class Token
extends java.lang.Object

Java Bean style class to store a token value and other meta data.

Author:
Hannes Holtzhausen

Constructor Summary
Token()
          Default constructor.
 
Method Summary
 int getCounter()
          Return the counter property.
 java.util.Date getExpiryDate()
          Return the expiration date property.
 java.lang.String getValue()
          Return the value of this token.
 void setCounter(int counter)
          Set the counter property for this token.
 void setExpiryDate(java.util.Date expDate)
          Set the expiry date property for this token.
 void setValue(java.lang.String value)
          Set the value of the token.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Token

public Token()
Default constructor.

Method Detail

setValue

public void setValue(java.lang.String value)
Set the value of the token.

Parameters:
value - String containing the value of the token.

setCounter

public void setCounter(int counter)
Set the counter property for this token. This can be used as a time to to live indicater for the value of this token.

Parameters:
counter - int containing the new counter value.

setExpiryDate

public void setExpiryDate(java.util.Date expDate)
Set the expiry date property for this token. This can be used to indicate an expiration date for the token value.

Parameters:
expDate - Date instance indicating the new expiration date.

getValue

public java.lang.String getValue()
Return the value of this token.

Returns:
String containing the token value.

getCounter

public int getCounter()
Return the counter property.

Returns:
int containing the counter property value.

getExpiryDate

public java.util.Date getExpiryDate()
Return the expiration date property.

Returns:
Date instance expiration dat property value.