-
public class AuthActivity.Companion
-
-
Field Summary
Fields Modifier and Type Field Description private final StringACTION_AUTHENTICATE_V1private final StringACTION_AUTHENTICATE_V2private final IntegerAUTH_VERSIONprivate final StringAUTH_PATH_CONNECTpublic Intentresultpublic final static AuthActivity.CompanionINSTANCE
-
Method Summary
Modifier and Type Method Description final UnitsetAuthParams(String appKey, String desiredUid, Array<String> alreadyAuthedUids)Set static authentication parameters final UnitsetAuthParams(String appKey, String desiredUid, Array<String> alreadyAuthedUids, String webHost, String apiType)Set static authentication parameters final UnitsetAuthParams(String appKey, String desiredUid, Array<String> alreadyAuthedUids, String sessionId)Set static authentication parameters final IntentmakeIntent(Context context, String appKey, String webHost, String apiType)Create an intent which can be sent to this activity to start OAuth 2 authentication. final IntentmakeIntent(Context context, String appKey, String desiredUid, Array<String> alreadyAuthedUids, String sessionId, String webHost, String apiType)Create an intent which can be sent to this activity to start OAuth 2 authentication. final BooleancheckAppBeforeAuth(Context context, String appKey, Boolean alertUser)Check's the current app's manifest setup for authentication. final UnitsetSecurityProvider(AuthActivity.SecurityProvider prov)final StringgetACTION_AUTHENTICATE_V1()The Android action which the official Dropbox app will accept to authenticate a user. final StringgetACTION_AUTHENTICATE_V2()The Android action which the official Dropbox app will accept to authenticate a user. final IntegergetAUTH_VERSION()The version of the API for the web-auth callback with token (not the initial auth request). final StringgetAUTH_PATH_CONNECT()The path for a successful callback with token (not the initial auth request). final IntentgetResult()Used internally. final UnitsetResult(@JvmField() Intent result)Used internally. -
-
Method Detail
-
setAuthParams
final Unit setAuthParams(String appKey, String desiredUid, Array<String> alreadyAuthedUids)
Set static authentication parameters
-
setAuthParams
final Unit setAuthParams(String appKey, String desiredUid, Array<String> alreadyAuthedUids, String webHost, String apiType)
Set static authentication parameters
-
setAuthParams
final Unit setAuthParams(String appKey, String desiredUid, Array<String> alreadyAuthedUids, String sessionId)
Set static authentication parameters
-
makeIntent
@Deprecated(message = Use Methods in com.dropbox.core.android.Auth, This will be removed in future versions.) final Intent makeIntent(Context context, String appKey, String webHost, String apiType)
Create an intent which can be sent to this activity to start OAuth 2 authentication.
- Parameters:
context- the source contextappKey- the consumer key for the appwebHost- the host to use for web authentication, or null for the defaultapiType- an identifier for the type of API being supported, or null for the default
-
makeIntent
@Deprecated(message = Use Methods in com.dropbox.core.android.Auth. This will be removed in future versions.) final Intent makeIntent(Context context, String appKey, String desiredUid, Array<String> alreadyAuthedUids, String sessionId, String webHost, String apiType)
Create an intent which can be sent to this activity to start OAuth 2 authentication.
- Parameters:
context- the source contextappKey- the consumer key for the appdesiredUid- Encourage user to authenticate account defined by this uid.alreadyAuthedUids- Array of any other uids currently authenticated with this app.sessionId- The SESSION_ID Extra on an OpenWith intent.webHost- the host to use for web authentication, or null for the defaultapiType- an identifier for the type of API being supported, or null for the default
-
checkAppBeforeAuth
@Deprecated(message = Use Methods in com.dropbox.core.android.Auth, This will be removed in future versions.) final Boolean checkAppBeforeAuth(Context context, String appKey, Boolean alertUser)
Check's the current app's manifest setup for authentication. If the manifest is incorrect, an exception will be thrown. If another app on the device is conflicting with this one, the user will (optionally) be alerted and false will be returned.
- Parameters:
context- the app contextappKey- the consumer key for the appalertUser- whether to alert the user for the case where multiple apps are conflicting.
-
setSecurityProvider
final Unit setSecurityProvider(AuthActivity.SecurityProvider prov)
-
getACTION_AUTHENTICATE_V1
final String getACTION_AUTHENTICATE_V1()
The Android action which the official Dropbox app will accept to authenticate a user. You won't ever have to use this.
-
getACTION_AUTHENTICATE_V2
final String getACTION_AUTHENTICATE_V2()
The Android action which the official Dropbox app will accept to authenticate a user. You won't ever have to use this.
-
getAUTH_VERSION
final Integer getAUTH_VERSION()
The version of the API for the web-auth callback with token (not the initial auth request).
-
getAUTH_PATH_CONNECT
final String getAUTH_PATH_CONNECT()
The path for a successful callback with token (not the initial auth request).
-
-
-
-