public class SharedLinkAuthorization extends DefaultRequestAuth
AUTH_HEADER_NAME| Constructor and Description |
|---|
SharedLinkAuthorization(OAuthAuthorization oauth,
String sharedLink,
String password)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
StringBuilder |
getAuthString()
Get auth header value string.
|
void |
setAuth(IBoxRequest request)
Set Auth into the API request.
|
void |
setPassword(String password)
Set password for the shared link auth, this is needed if a shared file is password protected.
|
public SharedLinkAuthorization(OAuthAuthorization oauth, String sharedLink, String password)
sharedLink - shared linkpublic void setPassword(String password)
password - passwordpublic void setAuth(IBoxRequest request) throws BoxRestException, AuthFatalFailureException
IBoxRequestAuthsetAuth in interface IBoxRequestAuthsetAuth in class DefaultRequestAuthrequest - IBoxRequestBoxRestException - Exception.AuthFatalFailureException - exceptionpublic StringBuilder getAuthString()
Copyright © 2014. All Rights Reserved.