1 /*
2  * Copyright (C) 2022 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 package android.webkit.cts;
17 
18 import androidx.annotation.IntDef;
19 
20 import java.lang.annotation.Retention;
21 import java.lang.annotation.RetentionPolicy;
22 
23 @Retention(RetentionPolicy.SOURCE)
24 @IntDef({
25     SslMode.INSECURE,
26     SslMode.NO_CLIENT_AUTH,
27     SslMode.WANTS_CLIENT_AUTH,
28     SslMode.NEEDS_CLIENT_AUTH,
29     SslMode.TRUST_ANY_CLIENT
30 })
31 public @interface SslMode {
32     int INSECURE = 0;
33     int NO_CLIENT_AUTH = 1;
34     int WANTS_CLIENT_AUTH = 2;
35     int NEEDS_CLIENT_AUTH = 3;
36     int TRUST_ANY_CLIENT = 4;
37 }
38