public static final class

LineAuthenticationParams.Builder

extends Object
java.lang.Object
   ↳ com.linecorp.linesdk.auth.LineAuthenticationParams.Builder

Class Overview

Represents a builder to construct LineAuthenticationParams objects.

Summary

Public Constructors
Builder()
Public Methods
LineAuthenticationParams.Builder botPrompt(LineAuthenticationParams.BotPrompt val)
Sets the option to determine how to prompt the user to add a LINE Official Account as a friend.
LineAuthenticationParams build()
Builds LineAuthenticationParams objects.
LineAuthenticationParams.Builder nonce(String val)
Sets nonce to the builder.
LineAuthenticationParams.Builder promptBotID(String botID)
LineAuthenticationParams.Builder scopes(List<Scope> val)
Sets scopes to the builder.
LineAuthenticationParams.Builder uiLocale(Locale val)
Sets the language in which to display login pages.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public Builder ()

Public Methods

public LineAuthenticationParams.Builder botPrompt (LineAuthenticationParams.BotPrompt val)

Sets the option to determine how to prompt the user to add a LINE Official Account as a friend.

Parameters
val The option to determine how to prompt the user to add a LINE Official Account as a friend.
Returns
  • The builder itself.

public LineAuthenticationParams build ()

Builds LineAuthenticationParams objects.

Returns
  • The LineAuthenticationParams object.

public LineAuthenticationParams.Builder nonce (String val)

Sets nonce to the builder.

Parameters
val A string used to prevent replay attacks. This value is returned in an ID token. If you don't specify a value for this parameter, LINE SDK will generate one.
Returns
  • The builder itself.

public LineAuthenticationParams.Builder promptBotID (String botID)

public LineAuthenticationParams.Builder scopes (List<Scope> val)

Sets scopes to the builder.

Parameters
val A list of scopes.
Returns
  • The builder itself.

public LineAuthenticationParams.Builder uiLocale (Locale val)

Sets the language in which to display login pages.

If not specified, login pages will use the language setting of user's web browser or LINE app.

Parameters
val The language in which to display login pages.
Returns
  • The builder itself.