Interface User

All Superinterfaces:
Adaptable, Authorizable

public interface User extends 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:
  • Method Details

    • grantImpersonation

      boolean grantImpersonation(Authorizable authorizable) throws AccessDeniedException
      Deprecated.
      Grant an Authorizable the 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

      boolean revokeImpersonation(Authorizable authorizable) throws AccessDeniedException
      Deprecated.
      Revoke the given Authorizanle the privilege to impersonate as this User.
      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 all Authorizables that are allowed to impersonate as this User. The collection will only contain the Authorizables the caller has permissions to read
      Returns:
      Authorizables allowed to impersonate as this User
    • getSudoableUsers

      Iterator<String> 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 plain
      digest - to use for encryption of the given password.
      Throws:
      NoSuchAlgorithmException - if the digest is not registered as a MessageDigest
      AccessDeniedException - In case of missing permissions.
    • changePassword

      void changePassword(String password)
      Deprecated.

      changePassword.

      Parameters:
      password - considered plain
    • disable

      void disable(String reason) throws RepositoryException
      Deprecated.

      disable.

      Parameters:
      reason - a String object.
      Throws:
      RepositoryException - if any.
      Since:
      5.4
      See Also:
    • isDisabled

      boolean isDisabled() throws RepositoryException
      Deprecated.

      isDisabled.

      Returns:
      a boolean.
      Throws:
      RepositoryException - if any.
      Since:
      5.4
      See Also:
    • getDisabledReason

      String getDisabledReason() throws RepositoryException
      Deprecated.

      getDisabledReason.

      Returns:
      a String object.
      Throws:
      RepositoryException - if any.
      Since:
      5.4
      See Also: