Interface AuthenticationComponent

    • Method Detail

      • authenticate

        void authenticate​(java.lang.String userName,
                          char[] password)
                   throws org.alfresco.repo.security.authentication.AuthenticationException
        Authenticate
        Throws:
        org.alfresco.repo.security.authentication.AuthenticationException
      • setCurrentUser

        net.sf.acegisecurity.Authentication setCurrentUser​(java.lang.String userName)
        Explicitly set the current user to be authenticated.
      • setCurrentUser

        net.sf.acegisecurity.Authentication setCurrentUser​(java.lang.String userName,
                                                           AuthenticationComponent.UserNameValidationMode validationMode)
        Explicitly set the current user to be authenticated. Specify if the userName is to be checked and fixed
      • setGuestUserAsCurrentUser

        net.sf.acegisecurity.Authentication setGuestUserAsCurrentUser()
        Set the guest user as the current user.
      • guestUserAuthenticationAllowed

        boolean guestUserAuthenticationAllowed()
        True if Guest user authentication is allowed, false otherwise
      • getDefaultAdministratorUserNames

        java.util.Set<java.lang.String> getDefaultAdministratorUserNames()
        Gets a set of user names who for this particular authentication system should be considered administrators by default. If the security framework is case sensitive these values should be case sensitive user names. If the security framework is not case sensitive these values should be the lower-case user names.
        Returns:
        a set of user names
      • getDefaultGuestUserNames

        java.util.Set<java.lang.String> getDefaultGuestUserNames()
        Gets a set of user names who for this particular authentication system should be considered guests by default. If the security framework is case sensitive these values should be case sensitive user names. If the security framework is not case sensitive these values should be the lower-case user names.
        Returns:
        a set of user names