package com.box.boxjavalibv2.authorization;

/**
 * Interface for UI to generate auth.
 */
public interface IAuthFlowUI {

    /**
     * Authenticate.
     * 
     * @param listener
     *            listener listening to events/messages fired during authentication process.
     */
    void authenticate(IAuthFlowListener listener);

    /**
     * Initialize the UI for OAuth flow. This needs to be called everytime before starting an auth flow.
     */
    void initializeAuthFlow(final Object applicationContext, String clientId, String clientSecret);

    /**
     * Initialize the UI for OAuth flow. This needs to be called everytime before starting an auth flow.
     */
    void initializeAuthFlow(final Object applicationContext, String clientId, String clientSecret, String redirectUrl);

}

@@ -38,16 +38,56 @@
 ation;%0A%0A
+import com.box.boxjavalibv2.BoxClient;%0A%0A
 /**%0A * I
@@ -833,10 +833,136 @@
 tUrl);%0A%0A
+    void initializeAuthFlow(Object activity, String clientId, String clientSecret, String redirectUrl, BoxClient boxClient);%0A%0A
 %7D%0A

Allow passing in box client when intializing OauthWebView