目录

WebAppIdentity

Class Info

public class WebAppIdentity extends AppIdentity

Identity of a web app.

Public Constructor Summary

Constructor Name

public WebAppIdentity(String name, String domain)

Constructs a WebAppIdentity object.

Public Method Summary

Qualifier and Type

Method Name and Description

public String

getDomain()

Obtains the domain name of a web app.

Public Constructors

[h2]WebAppIdentity

Constructor

public WebAppIdentity(String name, String domain)

Constructs a WebAppIdentity object.

Parameters

Name

Description

name

App name.

domain

Domain name of a web app.

NOTE:

The website URL is in https://domain[:optional_port] format, for example, https://developer.huawei.com.

In the URL:

  • domain indicates the website domain name, which must be fully matched and does not support wildcards.
  • optional_port indicates the port number of the website. The port number must be omitted if the default port 443 of the HTTP protocol is used.

This parameter cannot contain paths, such as slashes (/).

Subdomain names cannot use the credential. For example, if you set domain to https://developer.huawei.com, the website with the subdomain name being login.developer.huawei.com cannot use the shared credential.

Public Methods

[h2]getDomain

Method

public String getDomain()

Obtains the domain name of a web app.

Returns

Type

Description

String

Domain name of a web app.