public interface User extends Authorizable
Authorizable
that can be authenticated and
impersonated.getCredentials()
,
getImpersonation()
Modifier and Type | Method and Description |
---|---|
void |
changePassword(java.lang.String password)
Change the password of this user.
|
void |
changePassword(java.lang.String password,
java.lang.String oldPassword)
Change the password of this user.
|
void |
disable(java.lang.String reason)
Disable this user thus preventing future login if the
reason
is a non-null String.Note however, that this user will still be accessible by UserManager.getAuthorizable(java.lang.String) . |
Credentials |
getCredentials()
Returns the internal
Credentials representation for this
user. |
java.lang.String |
getDisabledReason()
|
Impersonation |
getImpersonation() |
boolean |
isAdmin() |
boolean |
isDisabled()
Returns
true if this user is disabled, false
otherwise. |
boolean |
isSystemUser() |
declaredMemberOf, getID, getPath, getPrincipal, getProperty, getPropertyNames, getPropertyNames, hasProperty, isGroup, memberOf, remove, removeProperty, setProperty, setProperty
boolean isAdmin()
boolean isSystemUser()
Credentials getCredentials() throws RepositoryException
Credentials
representation for this
user. This method is expected to be used for validation during the
login process. However, the return value should neither be usable nor
used for javax.jcr.Repository#login
.Credentials
for this user.javax.jcr.RepositoryException
- If an error occurs.RepositoryException
Impersonation getImpersonation() throws RepositoryException
Impersonation
for this User
.javax.jcr.RepositoryException
- If an error occurs.RepositoryException
void changePassword(java.lang.String password) throws RepositoryException
password
- The new password.RepositoryException
- If an error occurs.void changePassword(java.lang.String password, java.lang.String oldPassword) throws RepositoryException
password
- The new password.oldPassword
- The old password.RepositoryException
- If the old password doesn't match or if
an error occurs.void disable(java.lang.String reason) throws RepositoryException
reason
is a non-null String.UserManager.getAuthorizable(java.lang.String)
.reason
- String describing the reason for disable this user or
null
if the user account should be enabled again.RepositoryException
- If an error occurs.boolean isDisabled() throws RepositoryException
true
if this user is disabled, false
otherwise.true
if this user is disabled, false
otherwise.RepositoryException
- If an error occurs.java.lang.String getDisabledReason() throws RepositoryException
null
if this user is not disabled.RepositoryException
- If an error occurs."Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"