Intelligent Assistant
Chat with our virtual assistant to get answers promptly.
Class Info |
|---|
public class AccountAuthParamsHelper Constructs an AccountAuthParams object. |
Constructor Name |
|---|
public AccountAuthParamsHelper() A default constructor. |
public AccountAuthParamsHelper(AccountAuthParams params) Constructs AccountAuthParamsHelper using the existing AccountAuthParams object. |
Qualifier and Type | Method Name and Description |
|---|---|
AccountAuthParamsHelper | Requests a user to authorize an app to obtain the authorization code. |
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. |
AccountAuthParamsHelper | setEmail() Requests a user to authorize an app to obtain the email address. |
AccountAuthParamsHelper | setId() Requests a user to authorize an app to obtain the UnionID and OpenID. |
AccountAuthParamsHelper | Requests a user to authorize an app to obtain the ID token. |
AccountAuthParamsHelper | Requests a user to authorize an app to obtain the account information, such as the nickname and profile picture. |
AccountAuthParamsHelper | Requests a user to authorize an app to obtain the carrier ID. |
AccountAuthParamsHelper | setIdTokenSignAlg(int idTokenSignAlg) Specifies the signature algorithm type for the ID token. The default algorithm is RS256. If your app supports the PS256 algorithm, you can use the idTokenSignAlg parameter to specify this algorithm. For details, please refer to Cryptographic Algorithms for Digital Signatures and MACs. |
| Constructs AccountAuthParams using the existing AccountAuthParamsHelper object. |
Constructor |
|---|
public AccountAuthParamsHelper() A default constructor. |
Constructor |
|---|
public AccountAuthParamsHelper(AccountAuthParams params) Constructs AccountAuthParamsHelper using the existing AccountAuthParams object. |
Parameters
Name | Description |
|---|---|
params | Existing AccountAuthParams object. |
Method |
|---|
public 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. |
Parameters
Name | Description |
|---|---|
scopeList | Scope list. |
Returns
Type | Description |
|---|---|
AccountAuthParamsHelper | AccountAuthParamsHelper object. |
Method |
|---|
public AccountAuthParamsHelper setEmail() Requests a user to authorize an app to obtain the email address. |
Returns
Type | Description |
|---|---|
AccountAuthParamsHelper | AccountAuthParamsHelper object. |
Method |
|---|
public AccountAuthParamsHelper setId() Requests a user to authorize an app to obtain the UnionID and OpenID. |
Returns
Type | Description |
|---|---|
AccountAuthParamsHelper | AccountAuthParamsHelper object. |
Method |
|---|
public AccountAuthParamsHelper setIdToken() Requests a user to authorize an app to obtain the ID token. |
Returns
Type | Description |
|---|---|
AccountAuthParamsHelper | AccountAuthParamsHelper object. |
Method |
|---|
public 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 AccountAuthParamsHelper setCarrierId() Requests a user to authorize an app to obtain the carrier ID. |
Returns
Type | Description |
|---|---|
AccountAuthParamsHelper | AccountAuthParamsHelper object. |
Method |
|---|
public AccountAuthParamsHelper setIdTokenSignAlg(int idTokenSignAlg) Specifies the signature algorithm type for the ID token. The default algorithm is RS256. If your app supports the PS256 algorithm, you can use the idTokenSignAlg parameter to specify this algorithm. For details, please refer to Cryptographic Algorithms for Digital Signatures and MACs. |
Parameters
Name | Description |
|---|---|
idTokenSignAlg | Signature algorithm type.
|
Returns
Type | Description |
|---|---|
AccountAuthParamsHelper | AccountAuthParamsHelper object. |
Method |
|---|
public AccountAuthParams createParams() Constructs AccountAuthParams using the existing AccountAuthParamsHelper object. |
Returns
Type | Description |
|---|---|
AccountAuthParams object. |