Class AbstractChainingAuthenticationComponent

    • Constructor Detail

      • AbstractChainingAuthenticationComponent

        public AbstractChainingAuthenticationComponent()
        Instantiates a new abstract chaining authentication component.
    • Method Detail

      • getAuthenticationComponent

        protected abstract AuthenticationComponent getAuthenticationComponent​(java.lang.String name)
        Get the authentication component with the specified name
        Parameters:
        name - String
        Returns:
        the authentication component or null if it does not exist
      • getUsableAuthenticationComponents

        protected abstract java.util.Collection<AuthenticationComponent> getUsableAuthenticationComponents()
        Gets the authentication components across which methods will chain.
        Returns:
        the usable authentication components
      • authenticateImpl

        protected void authenticateImpl​(java.lang.String userName,
                                        char[] password)
        Chain authentication with user name and password - tries all in order until one works, or fails.
        Overrides:
        authenticateImpl in class AbstractAuthenticationComponent
        Parameters:
        userName - the user name
        password - the password
        Throws:
        org.alfresco.repo.security.authentication.AuthenticationException
      • testAuthenticate

        public void testAuthenticate​(java.lang.String authenticatorName,
                                     java.lang.String userName,
                                     char[] password)
        Test authenticate with a specific authenticator and user name and password.
        Parameters:
        authenticatorName - the name of the authenticator to use
        userName - the user name
        password - the password
        Throws:
        org.alfresco.repo.security.authentication.AuthenticationException - including diagnostic information about the failure
      • getDefaultAdministratorUserNames

        public 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.
        Specified by:
        getDefaultAdministratorUserNames in interface AuthenticationComponent
        Overrides:
        getDefaultAdministratorUserNames in class AbstractAuthenticationComponent
        Returns:
        a set of user names
      • getDefaultGuestUserNames

        public 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.
        Specified by:
        getDefaultGuestUserNames in interface AuthenticationComponent
        Overrides:
        getDefaultGuestUserNames in class AbstractAuthenticationComponent
        Returns:
        a set of user names