package com.box.androidsdk.content;

import com.box.androidsdk.content.models.BoxSession;
import com.box.androidsdk.content.models.BoxSharedLinkSession;
import com.box.androidsdk.content.requests.BoxRequestsShare;

/**
 * Represents the API of the share endpoint on Box. This class can be used to generate request objects
 * for each of the APIs exposed endpoints
 */
public class BoxApiShare extends BoxApi {

    protected String getSharedItemsUrl() { return String.format("%s/shared_items", getBaseUri()); }

    /**
     * Constructs a BoxApiShare with the provided BoxSession
     *
     * @param session authenticated session to use with the BoxApiShare
     */
    public BoxApiShare(BoxSession session) {
        super(session);
    }

    /**
     * Returns a request to get a BoxItem from a shared link.
     *
     * @param sharedLink    shared link of the item to retrieve.
     * @return  request to get a BoxItem from a shared link.
     */
    public BoxRequestsShare.GetSharedLink getSharedLinkRequest(String sharedLink) {
        BoxSharedLinkSession session = new BoxSharedLinkSession(sharedLink, mSession);
        session.setSharedLink(sharedLink);
        BoxRequestsShare.GetSharedLink request = new BoxRequestsShare.GetSharedLink(getSharedItemsUrl(), session);
        return request;
    }
}

@@ -30,16 +30,48 @@
 ntent;%0A%0A
+import android.text.TextUtils;%0A%0A
 import c
@@ -1060,24 +1060,446 @@
 aredLink) %7B%0A
+        return getSharedLinkRequest(sharedLink, null);%0A    %7D%0A%0A    /**%0A     * Returns a request to get a BoxItem from a shared link.%0A     *%0A     * @param sharedLink    shared link of the item to retrieve.%0A     * @param password password for shared link%0A     * @return  request to get a BoxItem from a shared link.%0A     */%0A    public BoxRequestsShare.GetSharedLink getSharedLinkRequest(String sharedLink, String password) %7B%0A
         BoxS
@@ -1616,16 +1616,113 @@
 dLink);%0A
+        if (!TextUtils.isEmpty(password)) %7B%0A            session.setPassword(password);%0A        %7D%0A
         

Add method that takes a password.