Package com.amazon.A3L.authentication
Class A3LAuth
java.lang.Object
com.amazon.A3L.authentication.A3LAuth
Initialization class for A3L Authentication library.
This class initiates AppAuth by creating AuthorizationServiceConfiguration and helps in identifying the
current device.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
getCurrentService
(Context context) Method to get the current service, GoogleSignIn or AppAuth depending on current device or developer's choicestatic void
Base method to initialize the AppAuth for A3L to support Google Authentication.static void
Base method to initialize the AppAuth for A3L to support Google Authentication and for setting up AppAuth as default across all devices
-
Constructor Details
-
A3LAuth
public A3LAuth()
-
-
Method Details
-
init
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
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
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.
-