Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c9420bb4 authored by Roshan Pius's avatar Roshan Pius Committed by android-build-merger
Browse files

supplicant(interface): Add network param getters

am: 118598a8

Change-Id: Ie7518ffb089b0e1f603720b001ea611f60d81091
parents 93a24656 118598a8
Loading
Loading
Loading
Loading
+179 −1
Original line number Diff line number Diff line
@@ -648,6 +648,184 @@ interface ISupplicantStaNetwork extends ISupplicantNetwork {
   */
  getRequirePmf() generates (SupplicantStatus status, bool enabled);

  /**
   * Get EAP Method set for this network.
   *
   * @return status Status of the operation.
   *         Possible status codes:
   *         |SupplicantStatusCode.SUCCESS|,
   *         |SupplicantStatusCode.FAILURE_UNKNOWN|,
   *         |SupplicantStatusCode.FAILURE_NETWORK_INVALID|
   * @return method value set.
   *        Must be one of |EapMethod| values.
   */
  getEapMethod()
      generates (SupplicantStatus status, EapMethod method);

  /**
   * Get EAP Phase2 Method set for this network.
   *
   * @return status Status of the operation.
   *         Possible status codes:
   *         |SupplicantStatusCode.SUCCESS|,
   *         |SupplicantStatusCode.FAILURE_UNKNOWN|,
   *         |SupplicantStatusCode.FAILURE_NETWORK_INVALID|
   * @return method value set.
   *        Must be one of |EapPhase2Method| values.
   */
  getEapPhase2Method()
      generates (SupplicantStatus status, EapPhase2Method method);

  /**
   * Get EAP Identity set for this network.
   *
   * @return status Status of the operation.
   *         Possible status codes:
   *         |SupplicantStatusCode.SUCCESS|,
   *         |SupplicantStatusCode.FAILURE_UNKNOWN|,
   *         |SupplicantStatusCode.FAILURE_NETWORK_INVALID|
   * @return identity value set.
   */
  getEapIdentity()
      generates (SupplicantStatus status, vec<uint8_t> identity);

  /**
   * Get EAP Anonymous Identity set for this network.
   *
   * @return status Status of the operation.
   *         Possible status codes:
   *         |SupplicantStatusCode.SUCCESS|,
   *         |SupplicantStatusCode.FAILURE_UNKNOWN|,
   *         |SupplicantStatusCode.FAILURE_NETWORK_INVALID|
   * @return identity value set.
   */
  getEapAnonymousIdentity()
      generates (SupplicantStatus status, vec<uint8_t> identity);

  /**
   * Get EAP Password set for this network.
   *
   * @return status Status of the operation.
   *         Possible status codes:
   *         |SupplicantStatusCode.SUCCESS|,
   *         |SupplicantStatusCode.FAILURE_UNKNOWN|,
   *         |SupplicantStatusCode.FAILURE_NETWORK_INVALID|
   * @return password value set.
   */
  getEapPassword()
      generates (SupplicantStatus status, vec<uint8_t> password);

  /**
   * Get EAP CA certificate file path set for this network.
   *
   * @return status Status of the operation.
   *         Possible status codes:
   *         |SupplicantStatusCode.SUCCESS|,
   *         |SupplicantStatusCode.FAILURE_UNKNOWN|,
   *         |SupplicantStatusCode.FAILURE_NETWORK_INVALID|
   * @return path value set.
   */
  getEapCACert() generates (SupplicantStatus status, string path);

  /**
   * Get EAP CA certificate directory path set for this network.
   *
   * @return status Status of the operation.
   *         Possible status codes:
   *         |SupplicantStatusCode.SUCCESS|,
   *         |SupplicantStatusCode.FAILURE_UNKNOWN|,
   *         |SupplicantStatusCode.FAILURE_NETWORK_INVALID|
   * @return path value set.
   */
  getEapCAPath() generates (SupplicantStatus status, string path);

  /**
   * Get EAP Client certificate file path set for this network.
   *
   * @return status Status of the operation.
   *         Possible status codes:
   *         |SupplicantStatusCode.SUCCESS|,
   *         |SupplicantStatusCode.FAILURE_UNKNOWN|,
   *         |SupplicantStatusCode.FAILURE_NETWORK_INVALID|
   * @return path value set.
   */
  getEapClientCert() generates (SupplicantStatus status, string path);

  /**
   * Get EAP private key file path set for this network.
   *
   * @return status Status of the operation.
   *         Possible status codes:
   *         |SupplicantStatusCode.SUCCESS|,
   *         |SupplicantStatusCode.FAILURE_UNKNOWN|,
   *         |SupplicantStatusCode.FAILURE_NETWORK_INVALID|
   * @return path value set.
   */
  getEapPrivateKey() generates (SupplicantStatus status, string path);

  /**
   * Get EAP subject match set for this network.
   *
   * @return status Status of the operation.
   *         Possible status codes:
   *         |SupplicantStatusCode.SUCCESS|,
   *         |SupplicantStatusCode.FAILURE_UNKNOWN|,
   *         |SupplicantStatusCode.FAILURE_NETWORK_INVALID|
   * @return match value set.
   */
  getEapSubjectMatch() generates (SupplicantStatus status, string match);

  /**
   * Get EAP Alt subject match set for this network.
   *
   * @return status Status of the operation.
   *         Possible status codes:
   *         |SupplicantStatusCode.SUCCESS|,
   *         |SupplicantStatusCode.FAILURE_UNKNOWN|,
   *         |SupplicantStatusCode.FAILURE_NETWORK_INVALID|
   * @return match value set.
   */
  getEapAltSubjectMatch()
      generates (SupplicantStatus status, string match);

  /**
   * Get if EAP Open SSL Engine is enabled for this network.
   *
   * @return status Status of the operation.
   *         Possible status codes:
   *         |SupplicantStatusCode.SUCCESS|,
   *         |SupplicantStatusCode.FAILURE_UNKNOWN|,
   *         |SupplicantStatusCode.FAILURE_NETWORK_INVALID|
   * @return enabled true if set, false otherwise.
   */
  getEapEngine() generates (SupplicantStatus status, bool enabled);

  /**
   * Get EAP Open SSL Engine ID set for this network.
   *
   * @return status Status of the operation.
   *         Possible status codes:
   *         |SupplicantStatusCode.SUCCESS|,
   *         |SupplicantStatusCode.FAILURE_UNKNOWN|,
   *         |SupplicantStatusCode.FAILURE_NETWORK_INVALID|
   * @return id value set.
   */
  getEapEngineID() generates (SupplicantStatus status, string id);

  /**
   * Get EAP Domain suffix match set for this network.
   *
   * @return status Status of the operation.
   *         Possible status codes:
   *         |SupplicantStatusCode.SUCCESS|,
   *         |SupplicantStatusCode.FAILURE_ARGS_INVALID|,
   *         |SupplicantStatusCode.FAILURE_UNKNOWN|,
   *         |SupplicantStatusCode.FAILURE_NETWORK_INVALID|
   * @return match value set.
   */
  getEapDomainSuffixMatch()
      generates (SupplicantStatus status, string match);

  /**
   * Enable the network for connection purposes.
   *