|
Jive Forums API (5.5.20.2-oracle) Developer Javadocs | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jivesoftware.forum.mail.token.EmailToken
public class EmailToken
EmailToken
s are used by the EmailTokenManager
to represent the temporary
token ids associated with user watch notification emails. They are not the concern of other parts of the system, but are
not implemented as a private inner class to facilitate serialization.
Constructor Summary | |
---|---|
EmailToken()
Default constructor initializes with current time and a random value for token value. |
|
EmailToken(int tokenValue,
java.util.Date timestamp)
Initializes with supplied tokenValue and timestamp. |
Method Summary | |
---|---|
int |
compareTo(java.lang.Object o)
|
boolean |
equals(java.lang.Object o)
|
int |
getCachedSize()
Returns the approximate size of the Object in bytes. |
java.util.Date |
getTimestamp()
Returns the date the token was created. |
int |
getTokenValue()
Returns the actual token. |
int |
hashCode()
|
void |
readExternal(java.io.DataInput dataInput)
|
void |
writeExternal(java.io.DataOutput dataOutput)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EmailToken()
public EmailToken(int tokenValue, java.util.Date timestamp)
tokenValue
- value of the token - used to authenticate users.timestamp
- the date the token was created.Method Detail |
---|
public int getTokenValue()
public java.util.Date getTimestamp()
public void readExternal(java.io.DataInput dataInput) throws java.io.IOException
readExternal
in interface com.tangosol.io.ExternalizableLite
java.io.IOException
public void writeExternal(java.io.DataOutput dataOutput) throws java.io.IOException
writeExternal
in interface com.tangosol.io.ExternalizableLite
java.io.IOException
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
public int getCachedSize()
Cacheable
getCachedSize
in interface Cacheable
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
|
Jive Forums Project Page | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |