blob: 4bcc4051b30c0f477a7d18621595d5be6840aeac [file] [log] [blame]
Chad Brubaker6bc1e392015-10-23 15:33:56 -07001/*
2 * Copyright (C) 2015 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
17package android.security.net.config;
18
Chad Brubaker6bc1e392015-10-23 15:33:56 -070019import java.security.cert.X509Certificate;
Chad Brubakeraa6c3c32015-12-18 13:43:28 -080020import java.util.Set;
Chad Brubaker6bc1e392015-10-23 15:33:56 -070021
22/** @hide */
23public interface CertificateSource {
24 Set<X509Certificate> getCertificates();
Chad Brubakerd3af9622015-11-16 10:48:20 -080025 X509Certificate findBySubjectAndPublicKey(X509Certificate cert);
Chad Brubakerfa9beeb2015-11-25 13:12:55 -080026 X509Certificate findByIssuerAndSignature(X509Certificate cert);
Chad Brubakeraa6c3c32015-12-18 13:43:28 -080027 Set<X509Certificate> findAllByIssuerAndSignature(X509Certificate cert);
Chad Brubakerbf9a82a2016-03-25 10:12:19 -070028 void handleTrustStorageUpdate();
Chad Brubaker6bc1e392015-10-23 15:33:56 -070029}