public interface IAuthenticator2 extends IAuthenticator
| Modifier and Type | Method and Description |
|---|---|
boolean |
isAdministrator(java.lang.String userID)
Queries whether a given user has administrative privileges.
|
void |
resetPassword(java.lang.String adminID,
char[] adminPassword,
java.lang.String userID,
char[] newPassword)
Performs an administrative resets of the password stored for the user identified by
userID. |
void |
updatePassword(java.lang.String userID,
char[] oldPassword,
char[] newPassword)
Updates the password stored for the user identified by
userID. |
authenticatevoid updatePassword(java.lang.String userID,
char[] oldPassword,
char[] newPassword)
userID. The oldPassword is authenticated
as per usual and is replaced by the newPassword only
(and atomically) on success.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 the oldPasswordjava.lang.SecurityException - on any failure to authenticate the oldPassword or validate and/or set the newPasswordvoid resetPassword(java.lang.String adminID,
char[] adminPassword,
java.lang.String userID,
char[] newPassword)
userID.
The adminID and adminPassword must authenticate
to permit the userID's password to be set to the newPassword.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 passwordjava.lang.SecurityException - on any failure to authenticate the oldPassword or validate and/or set the newPasswordboolean isAdministrator(java.lang.String userID)
userID - an user ID, which may or may not existCopyright (c) 2004-2019 Eike Stepper (Loehne, Germany) and others.
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html