@@ -83,31 +83,59 @@ public function getUsername(): string
83
83
}
84
84
85
85
/**
86
- * {@inheritdoc}
86
+ * Checks whether the user's account has expired.
87
+ *
88
+ * Internally, if this method returns false, the authentication system
89
+ * will throw an AccountExpiredException and prevent login.
90
+ *
91
+ * @return bool true if the user's account is non expired, false otherwise
92
+ *
93
+ * @see AccountExpiredException
87
94
*/
88
95
public function isAccountNonExpired (): bool
89
96
{
90
97
return $ this ->accountNonExpired ;
91
98
}
92
99
93
100
/**
94
- * {@inheritdoc}
101
+ * Checks whether the user is locked.
102
+ *
103
+ * Internally, if this method returns false, the authentication system
104
+ * will throw a LockedException and prevent login.
105
+ *
106
+ * @return bool true if the user is not locked, false otherwise
107
+ *
108
+ * @see LockedException
95
109
*/
96
110
public function isAccountNonLocked (): bool
97
111
{
98
112
return $ this ->accountNonLocked ;
99
113
}
100
114
101
115
/**
102
- * {@inheritdoc}
116
+ * Checks whether the user's credentials (password) has expired.
117
+ *
118
+ * Internally, if this method returns false, the authentication system
119
+ * will throw a CredentialsExpiredException and prevent login.
120
+ *
121
+ * @return bool true if the user's credentials are non expired, false otherwise
122
+ *
123
+ * @see CredentialsExpiredException
103
124
*/
104
125
public function isCredentialsNonExpired (): bool
105
126
{
106
127
return $ this ->credentialsNonExpired ;
107
128
}
108
129
109
130
/**
110
- * {@inheritdoc}
131
+ * Checks whether the user is enabled.
132
+ *
133
+ * Internally, if this method returns false, the authentication system
134
+ * will throw a DisabledException and prevent login.
135
+ *
136
+ * @return bool true if the user is enabled, false otherwise
137
+ *
138
+ * @see DisabledException
111
139
*/
112
140
public function isEnabled (): bool
113
141
{
0 commit comments