|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface User
User is a special Authorizable
that can be authenticated and
impersonated.
getCredentials()
,
getImpersonation()
Method Summary | |
---|---|
void |
changePassword(String password)
Change the password of this user. |
void |
disable(String reason)
Disable this user thus preventing future login if the reason
is a non-null String. |
Credentials |
getCredentials()
Returns the internal Credentials representation for this
user. |
String |
getDisabledReason()
Returns the String specified upon disabling this user or null
if isDisabled() returns false . |
Impersonation |
getImpersonation()
|
boolean |
isAdmin()
|
boolean |
isDisabled()
Returns true if this user is disabled, false
otherwise. |
Methods inherited from interface org.apache.jackrabbit.api.security.user.Authorizable |
---|
declaredMemberOf, getID, getPrincipal, getProperty, getPropertyNames, getPropertyNames, hasProperty, isGroup, memberOf, remove, removeProperty, setProperty, setProperty |
Method Detail |
---|
boolean isAdmin()
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 Repository.login(javax.jcr.Credentials, java.lang.String)
.
Credentials
for this user.
RepositoryException
- If an error occurs.Impersonation getImpersonation() throws RepositoryException
Impersonation
for this User
.
RepositoryException
- If an error occurs.void changePassword(String password) throws RepositoryException
password
- The new password.
RepositoryException
- If an error occurs.void disable(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
boolean isDisabled() throws RepositoryException
true
if this user is disabled, false
otherwise.
true
if this user is disabled, false
otherwise.
RepositoryException
String getDisabledReason() throws RepositoryException
null
if isDisabled()
returns false
.
null
if this user is not disabled.
RepositoryException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |