com.atlassian.crowd.model.token
Class ResetPasswordToken

java.lang.Object
  extended by com.atlassian.crowd.model.token.ResetPasswordToken
All Implemented Interfaces:
Serializable

public class ResetPasswordToken
extends Object
implements Serializable

Represents a reset password token.

Since:
v2.1.0
See Also:
Serialized Form

Constructor Summary
ResetPasswordToken(long expiryDate, String token, String username, long directoryId)
          Constructs a reset password token.
 
Method Summary
 boolean equals(Object o)
           
 long getDirectoryId()
           
 long getExpiryDate()
          Returns the expiry date of the reset token in milliseconds from epoch.
 String getToken()
          Returns the token to verify that the user wants to reset their password.
 String getUsername()
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResetPasswordToken

public ResetPasswordToken(long expiryDate,
                          String token,
                          String username,
                          long directoryId)
Constructs a reset password token.

Parameters:
expiryDate - expiry date in milliseconds from epoch
token - reset token
username - username
directoryId - directory ID
Method Detail

getExpiryDate

public long getExpiryDate()
Returns the expiry date of the reset token in milliseconds from epoch.

Returns:
expiry date in milliseconds from epoch

getToken

public String getToken()
Returns the token to verify that the user wants to reset their password.

Returns:
cryptographically secure token

getUsername

public String getUsername()

getDirectoryId

public long getDirectoryId()

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2013 Atlassian. All Rights Reserved.