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:
    Authorizable
    • Method Detail

      • 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

        java.util.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

        java.util.Iterator<java.lang.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​(java.lang.String password,
                         java.lang.String digest)
                  throws java.security.NoSuchAlgorithmException,
                         AccessDeniedException
        Deprecated.
        Parameters:
        password - considered plain
        digest - to use for encryption of the given password.
        Throws:
        java.security.NoSuchAlgorithmException - if the digest is not registered as a MessageDigest
        AccessDeniedException - In case of missing permissions.
      • changePassword

        void changePassword​(java.lang.String password)
        Deprecated.
        Parameters:
        password - considered plain