public ControllerRoute withBasicAuthentication(String username, String password, String secret) {
        Objects.requireNonNull(username, Required.USERNAME.toString());
        Objects.requireNonNull(password, Required.PASSWORD.toString());
        Objects.requireNonNull(password, Required.SECRET.toString());
        
        this.username = username;
        this.password = password;
        this.secret = secret;
        
        return this;
    }
public ControllerRoute withBasicAuthentication ( String username , String password , String secret ) { Objects . requireNonNull ( username , Required . USERNAME . toString ( ) ) ; Objects . requireNonNull ( password , Required . PASSWORD . toString ( ) ) ; Objects . requireNonNull ( password , Required . SECRET . toString ( ) ) ; this . username = username ; this . password = password ; this . secret = secret ; return this ; }
Sets Basic HTTP authentication to all method on the given controller class

@param username The username for basic authentication in clear text
@param password The password for basic authentication in clear text
@param secret The secret used for 2FA

@return controller route instance