Class A3LSignInOptions.Builder

java.lang.Object
com.amazon.A3L.authentication.api.signin.A3LSignInOptions.Builder
Enclosing class:
A3LSignInOptions

public static class A3LSignInOptions.Builder extends Object
Builder for A3LSignInOptions.
  • Constructor Details

  • Method Details

    • requestId

      public final A3LSignInOptions.Builder requestId()
      Specifies that user ID is requested by your application.
    • requestEmail

      public final A3LSignInOptions.Builder requestEmail()
      Specifies that email info is requested by your application. Note that we don't recommend keying user by email address since email address might change. Keying user by ID is the preferable approach.
    • requestProfile

      public final A3LSignInOptions.Builder requestProfile()
      Specifies that user's profile info is requested by your application.
    • requestIdToken

      public final A3LSignInOptions.Builder requestIdToken(@NonNull String serverClientId)
      Specifies that an ID token for authenticated users is requested. Requesting an ID token requires that the server client ID be specified.
      Parameters:
      serverClientId - : The client ID of the server that will verify the integrity of the token.
    • requestScopes

      public final A3LSignInOptions.Builder requestScopes(Scope scope, Scope... scopes)
      Specifies OAuth 2.0 scopes your application requests. See Scopes for more information.
      Parameters:
      scope - : An OAuth 2.0 scope requested by your app.
      scopes - : More OAuth 2.0 scopes requested by your app.
    • setAccountName

      public final A3LSignInOptions.Builder setAccountName(@NonNull String accountName)
      Specifies an account name on the device that should be used. If this is never called, the client will use the current default account for this application.
      Parameters:
      accountName - : The account name on the device that should be used to sign in.
    • setHostedDomain

      public final A3LSignInOptions.Builder setHostedDomain(@NonNull String hostedDomain)
      Specifies a hosted domain restriction. By setting this, sign in will be restricted to accounts of the user in the specified domain.
      Parameters:
      hostedDomain - : domain of the user to restrict (for example, "mycollege.edu").
    • build

      public final A3LSignInOptions build()
      Builds the A3LSignInOptions object.
      Returns:
      A3LSignInOptions: a A3LSignInOptions instance.