Class MutableAuthenticationServiceImpl

    • Constructor Detail

      • MutableAuthenticationServiceImpl

        public MutableAuthenticationServiceImpl()
    • Method Detail

      • setAuthenticationDao

        public void setAuthenticationDao​(MutableAuthenticationDao authenticationDao)
        Sets the authentication dao.
        Parameters:
        authenticationDao - the authentication dao
      • createAuthentication

        public void createAuthentication​(java.lang.String userName,
                                         char[] password)
                                  throws org.alfresco.repo.security.authentication.AuthenticationException
        Description copied from interface: MutableAuthenticationService
        Create an authentication for the given user.
        Specified by:
        createAuthentication in interface MutableAuthenticationService
        Parameters:
        userName - String
        password - char[]
        Throws:
        org.alfresco.repo.security.authentication.AuthenticationException
      • updateAuthentication

        public void updateAuthentication​(java.lang.String userName,
                                         char[] oldPassword,
                                         char[] newPassword)
                                  throws org.alfresco.repo.security.authentication.AuthenticationException
        Description copied from interface: MutableAuthenticationService
        Update the login information for the user (typically called by the user)
        Specified by:
        updateAuthentication in interface MutableAuthenticationService
        Parameters:
        userName - String
        oldPassword - char[]
        newPassword - char[]
        Throws:
        org.alfresco.repo.security.authentication.AuthenticationException
      • setAuthentication

        public void setAuthentication​(java.lang.String userName,
                                      char[] newPassword)
                               throws org.alfresco.repo.security.authentication.AuthenticationException
        Description copied from interface: MutableAuthenticationService
        Set the login information for a user (typically called by an admin user)
        Specified by:
        setAuthentication in interface MutableAuthenticationService
        Parameters:
        userName - String
        newPassword - char[]
        Throws:
        org.alfresco.repo.security.authentication.AuthenticationException
      • deleteAuthentication

        public void deleteAuthentication​(java.lang.String userName)
                                  throws org.alfresco.repo.security.authentication.AuthenticationException
        Description copied from interface: MutableAuthenticationService
        Delete an authentication entry
        Specified by:
        deleteAuthentication in interface MutableAuthenticationService
        Parameters:
        userName - String
        Throws:
        org.alfresco.repo.security.authentication.AuthenticationException
      • setAuthenticationEnabled

        public void setAuthenticationEnabled​(java.lang.String userName,
                                             boolean enabled)
                                      throws org.alfresco.repo.security.authentication.AuthenticationException
        Description copied from interface: MutableAuthenticationService
        Enable or disable an authentication entry
        Specified by:
        setAuthenticationEnabled in interface MutableAuthenticationService
        Parameters:
        userName - String
        enabled - boolean
        Throws:
        org.alfresco.repo.security.authentication.AuthenticationException
      • isAuthenticationMutable

        public boolean isAuthenticationMutable​(java.lang.String userName)
        Description copied from interface: MutableAuthenticationService
        Determines whether this user's authentication may be mutated via the other methods.
        Specified by:
        isAuthenticationMutable in interface MutableAuthenticationService
        Parameters:
        userName - the user ID
        Returns:
        true if this user's authentication may be mutated via the other methods.