WebAuth constructor

WebAuth(
  1. String authEndpoint,
  2. Network network,
  3. String serverSigningKey,
  4. String serverHomeDomain
)

Constructor

  • Parameter authEndpoint: Endpoint to be used for the authentication procedure. Usually taken from stellar.toml.
  • Parameter network: The network used.
  • Parameter serverSigningKey: The server public key, taken from stellar.toml.
  • Parameter serverHomeDomain: The server home domain of the server where the stellar.toml was loaded from

Implementation

WebAuth(String authEndpoint, Network network, String serverSigningKey,
    String serverHomeDomain) {
  _authEndpoint = checkNotNull(authEndpoint, "authEndpoint cannot be null");
  _network = checkNotNull(network, "network cannot be null");
  _serverSigningKey =
      checkNotNull(serverSigningKey, "serverSigningKey cannot be null");
  _serverHomeDomain =
      checkNotNull(serverHomeDomain, "serverHomeDomain cannot be null");
}