目录

Scope

Class Info

public class Scope

Describes the OAuth 2.0-based authorization request. User authorization is required for the sake of privacy protection. The authorization request is shown to users in a dialog box.

Public Constructor Summary

Constructor Name

public Scope(String uri)

Creates a scope using a specified URI.

Public Method Summary

Qualifier and Type

Method Name and Description

String

getScopeUri()

Obtains the URI of a scope.

Public Constructors

[h2]Scope

Constructor Name

public Scope(String uri)

Creates a scope using a specified URI.

Parameters

Type

Description

String

URI of a scope.

The options are as follows:

  • profile: basic information of a HUAWEI ID, such as the profile picture and nickname.
  • email: email address of a HUAWEI ID.
  • openid: OpenID of a HUAWEI ID.
  • https://www.huawei.com/auth/games: special scope for game apps.

Public Methods

[h2]getScopeUri

Method

public String getScopeUri()

Obtains the URI of a scope.

Returns

Type

Description

String

Scope URI.