That fuck shit the fascists are using
1package org.tm.archive;
2
3import androidx.annotation.NonNull;
4
5import java.util.Objects;
6
7/**
8 * Used in our {@link BuildConfig} to tie together the various attributes of a KBS instance. This
9 * is sitting in the root directory so it can be accessed by the build config.
10 */
11public final class KbsEnclave {
12
13 private final String enclaveName;
14 private final String serviceId;
15 private final String mrEnclave;
16
17 public KbsEnclave(@NonNull String enclaveName, @NonNull String serviceId, @NonNull String mrEnclave) {
18 this.enclaveName = enclaveName;
19 this.serviceId = serviceId;
20 this.mrEnclave = mrEnclave;
21 }
22
23 public @NonNull String getMrEnclave() {
24 return mrEnclave;
25 }
26
27 public @NonNull String getEnclaveName() {
28 return enclaveName;
29 }
30
31 public @NonNull String getServiceId() {
32 return serviceId;
33 }
34
35 @Override
36 public boolean equals(Object o) {
37 if (this == o) return true;
38 if (o == null || getClass() != o.getClass()) return false;
39 KbsEnclave enclave = (KbsEnclave) o;
40 return enclaveName.equals(enclave.enclaveName) &&
41 serviceId.equals(enclave.serviceId) &&
42 mrEnclave.equals(enclave.mrEnclave);
43 }
44
45 @Override
46 public int hashCode() {
47 return Objects.hash(enclaveName, serviceId, mrEnclave);
48 }
49}