Package org.eclipse.net4j.util.security
Schnittstelle IAuthenticator2
- Alle Superschnittstellen:
AdministrationPredicate
,IAuthenticator
Extension interface for authenticators that can update user credentials in addition to authenticating them.
- Seit:
- 3.4
- Autor:
- Christian W. Damus (CEA LIST)
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungboolean
isAdministrator
(String userID) Queries whether a given user has administrative privileges.void
resetPassword
(String adminID, char[] adminPassword, String userID, char[] newPassword) Performs an administrative resets of the password stored for the user identified byuserID
.void
updatePassword
(String userID, char[] oldPassword, char[] newPassword) Updates the password stored for the user identified byuserID
.Von Schnittstelle geerbte Methoden org.eclipse.net4j.util.security.IAuthenticator
authenticate
-
Methodendetails
-
updatePassword
Updates the password stored for the user identified byuserID
. TheoldPassword
is authenticated as per usual and is replaced by thenewPassword
only (and atomically) on success.- Parameter:
userID
- the ID of the user whose password is to be updatedoldPassword
- the user's current password attempt to verify against the stored passwordnewPassword
- the new password to replace theoldPassword
- Löst aus:
SecurityException
- on any failure to authenticate theoldPassword
or validate and/or set thenewPassword
-
resetPassword
Performs an administrative resets of the password stored for the user identified byuserID
. TheadminID
andadminPassword
must authenticate to permit theuserID
's password to be set to thenewPassword
.- Parameter:
adminID
- the ID of the administrator requesting the resetadminPassword
- the administrator's passworduserID
- the ID of the user whose password is to be resetnewPassword
- the new password to replace the user's old password- Löst aus:
SecurityException
- on any failure to authenticate theoldPassword
or validate and/or set thenewPassword
-
isAdministrator
Queries whether a given user has administrative privileges.- Angegeben von:
isAdministrator
in SchnittstelleAdministrationPredicate
- Parameter:
userID
- an user ID, which may or may not exist- Gibt zurück:
- whether the userID exists and has administrative privileges
-