public interface ChangeUserPassword
ChangeUserPassword
service api.
This interface is not intended to be implemented by bundles. It is implemented by this bundle and may be used by client bundles.
Modifier and Type | Method and Description |
---|---|
org.apache.jackrabbit.api.security.user.User |
changePassword(javax.jcr.Session jcrSession,
String name,
String oldPassword,
String newPassword,
String newPasswordConfirm,
List<Modification> changes)
Update the password of a user in the repository
|
org.apache.jackrabbit.api.security.user.User changePassword(javax.jcr.Session jcrSession, String name, String oldPassword, String newPassword, String newPasswordConfirm, List<Modification> changes) throws javax.jcr.RepositoryException
jcrSession
- the JCR session of the user updating the username
- The name of the user to update (required)oldPassword
- The current password of the user (required for non-admin users)newPassword
- The password value to apply (required)newPasswordConfirm
- The password value to apply again (required)changes
- The list of changes for this operation (optional)javax.jcr.RepositoryException
- if password can't be changed for some reasonCopyright © 2017 The Apache Software Foundation. All rights reserved.