Class UserAuthProvider

    • Constructor Detail

      • UserAuthProvider

        public UserAuthProvider​(@NotNull
                                @NotNull String userName,
                                char @NotNull [] password)
                         throws ResultException

        Creates a new UserAuthProvider provider for the given userName and password.
        Be aware: The given values may not be empty. Use the AnonymousAuthProvider to create anonymous Sessions.

        Be aware: Currently an UserAuthProvider shall only serve one Session at a time. An UserAuthProvider being called by another Session than it´s current master, shall assume it´s current master to have expired and shall, try to reauthorize that new Session (new master).
        For that reason an UserAuthProviders shall be reusable by subsequent Sessions.

        Parameters:
        userName - The name of the user to authenticate.
        password - The password of the user to authenticate.
        Throws:
        ResultException