Package com.easydesk.web.form
Record Class ResetPasswordForm
java.lang.Object
java.lang.Record
com.easydesk.web.form.ResetPasswordForm
- Record Components:
token- 메일 링크에 담겨 온 1회성 재설정 토큰password- 새 비밀번호repassword- 새 비밀번호 확인
'새 비밀번호 설정' 화면에서 쓰는 폼 바인딩용 레코드.
token 은 화면에 hidden input 으로 실려오는, 메일로 보낸 링크의 쿼리 파라미터 값이다 -
PasswordResetTokenService 가 발급/검증한다.
-
Constructor Summary
ConstructorsConstructorDescriptionResetPasswordForm(String token, String password, String repassword) Creates an instance of aResetPasswordFormrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.password()Returns the value of thepasswordrecord component.Returns the value of therepasswordrecord component.token()Returns the value of thetokenrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ResetPasswordForm
Creates an instance of aResetPasswordFormrecord class.- Parameters:
token- the value for thetokenrecord componentpassword- the value for thepasswordrecord componentrepassword- the value for therepasswordrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
token
Returns the value of thetokenrecord component.- Returns:
- the value of the
tokenrecord component
-
password
Returns the value of thepasswordrecord component.- Returns:
- the value of the
passwordrecord component
-
repassword
Returns the value of therepasswordrecord component.- Returns:
- the value of the
repasswordrecord component
-