Class MongoPasswordResetToken
java.lang.Object
dev.getelements.elements.dao.mongo.model.user.MongoPasswordResetToken
@Entity("password_reset_token")
@Index(fields=@Field("user")) @Index(fields=@Field("expiry"),options=@IndexOptions(expireAfterSeconds=0))
public class MongoPasswordResetToken
extends Object
MongoDB entity for a single-use password reset token.
The
token field doubles as the document _id.
The TTL index on expiry (with expireAfterSeconds=0) causes MongoDB to automatically
remove expired documents.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
MongoPasswordResetToken
public MongoPasswordResetToken()
-
-
Method Details
-
getToken
-
setToken
-
getUser
-
setUser
-
getExpiry
-
setExpiry
-