Package com.amazon.A3L.authentication
Class A3LAuth
- java.lang.Object
-
- com.amazon.A3L.authentication.A3LAuth
-
public class A3LAuth extends java.lang.Object
Initialization class for A3L Authentication library. This class initiates AppAuth by creating AuthorizationServiceConfiguration and helps in identifying the current device.
-
-
Constructor Summary
Constructors Constructor Description A3LAuth()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
getCurrentService(android.content.Context context)
Method to get the current service, GoogleSignIn or AppAuth depending on current device or developer's choicestatic void
init(java.lang.String clientId)
Base method to initialize the AppAuth for A3L to support Google Authentication.static void
init(java.lang.String clientId, boolean defaultToAppAuth)
Base method to initialize the AppAuth for A3L to support Google Authentication and for setting up AppAuth as default across all devices
-
-
-
Method Detail
-
init
public static void init(@NonNull java.lang.String clientId) throws APIException
Base method to initialize the AppAuth for A3L to support Google Authentication. The client id is required by the AppAuth for authentication.- Parameters:
clientId
- : Android client id for the current app- Throws:
APIException
-
init
public static void init(@NonNull java.lang.String clientId, boolean defaultToAppAuth) throws APIException
Base method to initialize the AppAuth for A3L to support Google Authentication and for setting up AppAuth as default across all devices- Parameters:
clientId
- : Android client id for the current appdefaultToAppAuth
- : boolean representing if the developer wishes to use AppAuth as default- Throws:
APIException
-
getCurrentService
public static java.lang.String getCurrentService(@NonNull android.content.Context context)
Method to get the current service, GoogleSignIn or AppAuth depending on current device or developer's choice- Parameters:
context
- : Application Context representing the current app- Returns:
- String: Current service in use for the app.
-
-