Class Info |
|---|
public final class AccountAuthParamsHelper Constructs an AccountAuthParams object. |
Constructor Name |
|---|
public AccountAuthParamsHelper() Default constructor. |
public AccountAuthParamsHelper(AccountAuthParams params) Constructs AccountAuthParamsHelper using the existing AccountAuthParams object. |
Qualifier and Type | Method Name and Description |
|---|---|
final AccountAuthParamsHelper | Requests a user to authorize an app to obtain the authorization code. |
final AccountAuthParamsHelper | setScopeList(List<Scope> scopeList) Adds a specified scope to authorization parameters to request a user to authorize an app to obtain the user information specified by the scope. |
final AccountAuthParamsHelper | setEmail() Requests a user to authorize an app to obtain the email address. |
final AccountAuthParamsHelper | setId() Requests a user to authorize an app to obtain the UnionID and OpenID. |
final AccountAuthParamsHelper | Requests a user to authorize an app to obtain the ID token. |
final AccountAuthParamsHelper | Requests a user to authorize an app to obtain the account information, such as the nickname and profile picture. |
final AccountAuthParams | Constructs AccountAuthParams using the existing AccountAuthParamsHelper object. |
Constructor |
|---|
public AccountAuthParamsHelper(AccountAuthParams params) Constructs AccountAuthParamsHelper using the existing AccountAuthParams object. |
Parameters
Name | Description |
|---|---|
params | Existing AccountAuthParams object. |
Method |
|---|
public final AccountAuthParamsHelper setAuthorizationCode() Requests a user to authorize an app to obtain the authorization code. If setAuthorizationCode is used, you do not need to call setIdToken(String clientId). When your app server uses the authorization code to obtain tokens from the Huawei OAuth server, the ID token is contained in the returned result. |
Returns
Type | Description |
|---|---|
AccountAuthParamsHelper | AccountAuthParamsHelper object. |
Method |
|---|
public final AccountAuthParamsHelper setScopeList(List<Scope> scopeList) Adds a specified scope to authorization parameters to request a user to authorize an app to obtain the user information specified by the scope. |
Parameters
Name | Description |
|---|---|
scopeList | An array of scopes. |
Returns
Type | Description |
|---|---|
AccountAuthParamsHelper | AccountAuthParamsHelper object. |
Method |
|---|
public final AccountAuthParamsHelper setEmail() Requests a user to authorize an app to obtain the email address. |
Returns
Type | Description |
|---|---|
AccountAuthParamsHelper | AccountAuthParamsHelper object. |
Method |
|---|
public final AccountAuthParamsHelper setId() Requests a user to authorize an app to obtain the UnionID and OpenID. |
Returns
Type | Description |
|---|---|
AccountAuthParamsHelper | AccountAuthParamsHelper object. |
Method |
|---|
public final AccountAuthParamsHelper setIdToken() Requests a user to authorize an app to obtain the ID token. |
Returns
Type | Description |
|---|---|
AccountAuthParamsHelper | AccountAuthParamsHelper object. |
Method |
|---|
public final AccountAuthParamsHelper setProfile() Requests a user to authorize an app to obtain the account information, such as the nickname and profile picture. |
Returns
Type | Description |
|---|---|
AccountAuthParamsHelper | AccountAuthParamsHelper object. |
Method |
|---|
public final AccountAuthParams createParams() Constructs AccountAuthParams using the existing AccountAuthParamsHelper object. |
Returns
Type | Description |
|---|---|
AccountAuthParams object. |