Package com.day.cq.security
Interface User
- All Superinterfaces:
Adaptable,Authorizable
Deprecated.
cq 5.5 Use org.apache.jackrabbit.api.security.user.User instead.
A User is an Authorizable that may Authenticate.
This User authenticates by its Password.
It therefor extends the Authorizable by a method to save a Password
- See Also:
-
Field Summary
Fields inherited from interface com.day.cq.security.Authorizable
PROPERTY_DESCRIPTION, PROPERTY_EMAIL, PROPERTY_FIRST_NAME, PROPERTY_ID, PROPERTY_IMPERSONATORS, PROPERTY_LAST_NAME, PROPERTY_NAME, PROPERTY_PASSWORD, PROPERTY_PRINCIPAL -
Method Summary
Modifier and TypeMethodDescriptionvoidchangePassword(String password) Deprecated.changePassword.voidDeprecated.disable.Deprecated.getDisabledReason.Iterator<? extends Authorizable> Deprecated.Access allAuthorizablesthat are allowed to impersonate as thisUser.Deprecated.Return the Ids of all Authorizables that this User is allowed to impersonate asbooleangrantImpersonation(Authorizable authorizable) Deprecated.Grant anAuthorizablethe privilege to impersonate as this User.
NOTE: you can't grant impersonation from the User to the User itself.booleanDeprecated.isDisabled.booleanrevokeImpersonation(Authorizable authorizable) Deprecated.Revoke the givenAuthorizanlethe privilege to impersonate as thisUser.
NOTE: you can't revoke impersonation from the User to the User itself.voidsetPassword(String password, String digest) Deprecated.Methods inherited from interface com.day.cq.security.Authorizable
getHomePath, getID, getName, getPrincipal, getPrivilege, getPrivileges, getProfile, getProperty, getPropertyNames, grantPrivilege, hasPermission, hasPermissionOn, isUser, memberOf, remove, removeProperty, revokePrivilege, setProperty
-
Method Details
-
grantImpersonation
Deprecated.Grant anAuthorizablethe privilege to impersonate as this User.
NOTE: you can't grant impersonation from the User to the User itself. Implementations have to return false in this case.- Parameters:
authorizable- the Impersonation should be granted- Returns:
- true if newly added.
- Throws:
AccessDeniedException- if privileges are not sufficient
-
revokeImpersonation
Deprecated.Revoke the givenAuthorizanlethe privilege to impersonate as thisUser.
NOTE: you can't revoke impersonation from the User to the User itself.- Parameters:
authorizable- to remove the Privilege- Returns:
- true if tha given Authoirzable has had the privilege
- Throws:
AccessDeniedException- in case the caller does not the permission to perform this action
-
getImpersonators
Iterator<? extends Authorizable> getImpersonators()Deprecated.Access allAuthorizablesthat are allowed to impersonate as thisUser. The collection will only contain the Authorizables the caller has permissions to read- Returns:
- Authorizables allowed to impersonate as this User
-
getSudoableUsers
Deprecated.Return the Ids of all Authorizables that this User is allowed to impersonate as- Returns:
- list of all IDs of User it may be allowed to sudo
-
setPassword
@Deprecated void setPassword(String password, String digest) throws NoSuchAlgorithmException, AccessDeniedException Deprecated.setPassword.
- Parameters:
password- considered plaindigest- to use for encryption of the given password.- Throws:
NoSuchAlgorithmException- if the digest is not registered as a MessageDigestAccessDeniedException- In case of missing permissions.
-
changePassword
Deprecated.changePassword.
- Parameters:
password- considered plain
-
disable
Deprecated.disable.
- Parameters:
reason- aStringobject.- Throws:
RepositoryException- if any.- Since:
- 5.4
- See Also:
-
isDisabled
Deprecated.isDisabled.
- Returns:
- a boolean.
- Throws:
RepositoryException- if any.- Since:
- 5.4
- See Also:
-
getDisabledReason
Deprecated.getDisabledReason.
- Returns:
- a
Stringobject. - Throws:
RepositoryException- if any.- Since:
- 5.4
- See Also:
-