Modern Apps git
git clone https://git.maproj.org/Modern-Apps.git
translate ▾

Modern-Apps.git / library / aosp-stubs / src / main / java / android / telephony / gba / UaSecurityProtocolIdentifier.java

UaSecurityProtocolIdentifier.java44 lines · 1.4 KiBRaw
1package android.telephony.gba;
2
3/**
4 * Compile-only stub of the framework's {@code @SystemApi}
5 * {@code android.telephony.gba.UaSecurityProtocolIdentifier}. Mirrors the
6 * AOSP surface used for GBA bootstrapping (org/protocol/cipher-suite
7 * constants + Builder). Not packaged; the real class is provided by the
8 * framework at runtime.
9 */
10public final class UaSecurityProtocolIdentifier {
11 public static final int ORG_NONE = 0;
12 public static final int ORG_3GPP = 0x01;
13 public static final int ORG_3GPP2 = 0x02;
14 public static final int ORG_OMA = 0x03;
15 public static final int ORG_GSMA = 0x04;
16 public static final int ORG_LOCAL = 0xFF;
17
18 public static final int UA_SECURITY_PROTOCOL_3GPP_HTTP_DIGEST_AUTHENTICATION = 2;
19
20 public @interface OrganizationCode {}
21 public @interface UaSecurityProtocol3gpp {}
22
23 public static final class Builder {
24 public Builder() {
25 throw new RuntimeException("Stub");
26 }
27
28 public Builder setOrg(@OrganizationCode int orgCode) {
29 throw new RuntimeException("Stub");
30 }
31
32 public Builder setProtocol(@UaSecurityProtocol3gpp int protocol) {
33 throw new RuntimeException("Stub");
34 }
35
36 public Builder setTlsCipherSuite(@TlsParams.TlsCipherSuite int cs) {
37 throw new RuntimeException("Stub");
38 }
39
40 public UaSecurityProtocolIdentifier build() {
41 throw new RuntimeException("Stub");
42 }
43 }
44}