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