Class NullMutableAuthenticationDao

  • All Implemented Interfaces:
    net.sf.acegisecurity.providers.dao.AuthenticationDao, net.sf.acegisecurity.providers.dao.SaltSource, MutableAuthenticationDao

    public class NullMutableAuthenticationDao
    extends Object
    implements MutableAuthenticationDao
    Null Mutable Authentication Dao Class

    Mutable authentication implementation that does nothing.

    Author:
    GKSpencer
    • Constructor Detail

      • NullMutableAuthenticationDao

        public NullMutableAuthenticationDao()
    • Method Detail

      • setNodeService

        public void setNodeService​(org.alfresco.service.cmr.repository.NodeService nodeService)
        Parameters:
        nodeService - ignored
      • createUser

        public void createUser​(String userName,
                               char[] rawPassword)
                        throws org.alfresco.repo.security.authentication.AuthenticationException
        Description copied from interface: MutableAuthenticationDao
        Create a user with the given userName and password
        Specified by:
        createUser in interface MutableAuthenticationDao
        Throws:
        org.alfresco.error.AlfrescoRuntimeException - Not implemented
        org.alfresco.repo.security.authentication.AuthenticationException
      • createUser

        public void createUser​(String caseSensitiveUserName,
                               String hashedpassword,
                               char[] rawPassword)
                        throws org.alfresco.repo.security.authentication.AuthenticationException
        Description copied from interface: MutableAuthenticationDao
        Create a user with the given userName and password hash If hashedPassword is passed in then this is used, otherwise it falls back to using the rawPassword. It is assumed the hashed password has been encoded using system.preferred.password.encoding and doesn't use its own salt.
        Specified by:
        createUser in interface MutableAuthenticationDao
        Throws:
        org.alfresco.error.AlfrescoRuntimeException - Not implemented
        org.alfresco.repo.security.authentication.AuthenticationException
      • updateUser

        public void updateUser​(String userName,
                               char[] rawPassword)
                        throws org.alfresco.repo.security.authentication.AuthenticationException
        Description copied from interface: MutableAuthenticationDao
        Update a user's password.
        Specified by:
        updateUser in interface MutableAuthenticationDao
        Throws:
        org.alfresco.error.AlfrescoRuntimeException - Not implemented
        org.alfresco.repo.security.authentication.AuthenticationException
      • deleteUser

        public void deleteUser​(String userName)
                        throws org.alfresco.repo.security.authentication.AuthenticationException
        Description copied from interface: MutableAuthenticationDao
        Delete a user.
        Specified by:
        deleteUser in interface MutableAuthenticationDao
        Throws:
        org.alfresco.error.AlfrescoRuntimeException - Not implemented
        org.alfresco.repo.security.authentication.AuthenticationException
      • getLocked

        public boolean getLocked​(String userName)
        Description copied from interface: MutableAuthenticationDao
        Check if the account is locked
        Specified by:
        getLocked in interface MutableAuthenticationDao
        Parameters:
        userName - the username
        Throws:
        org.alfresco.error.AlfrescoRuntimeException - Not implemented
      • loadUserByUsername

        public net.sf.acegisecurity.UserDetails loadUserByUsername​(String arg0)
                                                            throws net.sf.acegisecurity.providers.dao.UsernameNotFoundException,
                                                                   org.springframework.dao.DataAccessException
        Specified by:
        loadUserByUsername in interface net.sf.acegisecurity.providers.dao.AuthenticationDao
        Throws:
        org.alfresco.error.AlfrescoRuntimeException - Not implemented
        net.sf.acegisecurity.providers.dao.UsernameNotFoundException
        org.springframework.dao.DataAccessException
      • getSalt

        public Object getSalt​(net.sf.acegisecurity.UserDetails user)
        Specified by:
        getSalt in interface net.sf.acegisecurity.providers.dao.SaltSource
        Throws:
        org.alfresco.error.AlfrescoRuntimeException - Not implemented