• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* GENERATED SOURCE. DO NOT MODIFY. */
2 /*
3  * Copyright 2018 The Android Open Source Project
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  *      http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */
17 
18 package com.android.org.conscrypt;
19 
20 import java.security.cert.X509Certificate;
21 import java.util.Set;
22 
23 /**
24  * A certificate store that supports additional operations that are used in
25  * TrustManagerImpl.  This is primarily implemented by the cert store on the
26  * Android platform.
27  * @hide This class is not part of the Android public SDK API
28  */
29 @libcore.api.CorePlatformApi(status = libcore.api.CorePlatformApi.Status.STABLE)
30 @Internal
31 public interface ConscryptCertStore {
32     /**
33      * Returns a stored CA certificate with the same name and public key as the
34      * provided {@link X509Certificate}.
35      */
getTrustAnchor(X509Certificate c)36     X509Certificate getTrustAnchor(X509Certificate c);
37 
38     /**
39      * Returns all CA certificates with the public key that was used to sign the
40      * provided {@link X509Certificate}.
41      */
findAllIssuers(X509Certificate c)42     Set<X509Certificate> findAllIssuers(X509Certificate c);
43 }
44