|
Clearspace API (2.5.29) Core Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface EmailTokenManager
Manages email tokens. Email tokens are set in emails so that user authentication can be performed on reply emails. Implementors of this interface handle the token creation and encoding, parsing, and lookup of parsed user data.
| Method Summary | |
|---|---|
void |
deleteUserEmailTokens(User user)
Called before a user is deleted. |
String |
getMessageToken(long userID,
long messageID)
Uses the supplied user id and message id to build a token string which can be used to identify and authenticate that user and message. |
Pattern |
getTokenPattern()
Returns a Pattern which matches any email token generated
by this EmailTokenManager instance. |
long[] |
getUserAndMessageID(String messageToken)
Uses the supplied token string to lookup a user id and forums message id. |
long |
getUserID(String messageToken)
Returns just the user id as found in the supplied token string. |
| Method Detail |
|---|
String getMessageToken(long userID,
long messageID)
throws com.jivesoftware.community.mail.EmailMonitorException
userID - the user id to encode.messageID - the message id to encode.
EmailMonitorException - if an attempt to create a new token fails.
long[] getUserAndMessageID(String messageToken)
throws com.jivesoftware.community.mail.EmailMonitorException
messageToken - the token containing encoded data.
EmailMonitorException - if an the token does not correspond to an existing user or
message id or if the token has expirec.long getUserID(String messageToken)
messageToken - the token string to search for a user id.
Pattern getTokenPattern()
Pattern which matches any email token generated
by this EmailTokenManager instance.
Pattern which matches any email token generated
by this EmailTokenManager instance.void deleteUserEmailTokens(User user)
user - the owner of the tokens being deleted.
|
Clearspace Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||