1 /*
2 * Copyright (C) 2014 The Android Open Source Project
3 * Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights reserved.
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 *
6 * This code is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License version 2 only, as
8 * published by the Free Software Foundation. Oracle designates this
9 * particular file as subject to the "Classpath" exception as provided
10 * by Oracle in the LICENSE file that accompanied this code.
11 *
12 * This code is distributed in the hope that it will be useful, but WITHOUT
13 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
15 * version 2 for more details (a copy is included in the LICENSE file that
16 * accompanied this code).
17 *
18 * You should have received a copy of the GNU General Public License version
19 * 2 along with this work; if not, write to the Free Software Foundation,
20 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
21 *
22 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
23 * or visit www.oracle.com if you need additional information or have any
24 * questions.
25 */
26
27
28 package sun.security.jca;
29
30 import java.security.Provider;
31 import java.util.Set;
32 import java.security.NoSuchAlgorithmException;
33
34 @libcore.api.CorePlatformApi
35 @libcore.api.Hide
36 @SuppressWarnings({"unchecked", "deprecation", "all"})
37 public class Providers {
38
Providers()39 Providers() { throw new RuntimeException("Stub!"); }
40
getSunProvider()41 public static java.security.Provider getSunProvider() { throw new RuntimeException("Stub!"); }
42
43 @libcore.api.CorePlatformApi
startJarVerification()44 public static java.lang.Object startJarVerification() { throw new RuntimeException("Stub!"); }
45
46
47 @libcore.api.CorePlatformApi
stopJarVerification(java.lang.Object obj)48 public static void stopJarVerification(java.lang.Object obj) { throw new RuntimeException("Stub!"); }
49
getProviderList()50 public static sun.security.jca.ProviderList getProviderList() { throw new RuntimeException("Stub!"); }
51
setProviderList(sun.security.jca.ProviderList newList)52 public static void setProviderList(sun.security.jca.ProviderList newList) { throw new RuntimeException("Stub!"); }
53
getFullProviderList()54 public static sun.security.jca.ProviderList getFullProviderList() { throw new RuntimeException("Stub!"); }
55
getThreadProviderList()56 public static sun.security.jca.ProviderList getThreadProviderList() { throw new RuntimeException("Stub!"); }
57
beginThreadProviderList(sun.security.jca.ProviderList list)58 public static synchronized sun.security.jca.ProviderList beginThreadProviderList(sun.security.jca.ProviderList list) { throw new RuntimeException("Stub!"); }
59
endThreadProviderList(sun.security.jca.ProviderList list)60 public static synchronized void endThreadProviderList(sun.security.jca.ProviderList list) { throw new RuntimeException("Stub!"); }
61
setMaximumAllowableApiLevelForBcDeprecation(int targetApiLevel)62 public static void setMaximumAllowableApiLevelForBcDeprecation(int targetApiLevel) { throw new RuntimeException("Stub!"); }
63
getMaximumAllowableApiLevelForBcDeprecation()64 public static int getMaximumAllowableApiLevelForBcDeprecation() { throw new RuntimeException("Stub!"); }
65
checkBouncyCastleDeprecation(java.lang.String provider, java.lang.String service, java.lang.String algorithm)66 public static synchronized void checkBouncyCastleDeprecation(java.lang.String provider, java.lang.String service, java.lang.String algorithm) throws java.security.NoSuchAlgorithmException { throw new RuntimeException("Stub!"); }
67
checkBouncyCastleDeprecation(java.security.Provider provider, java.lang.String service, java.lang.String algorithm)68 public static synchronized void checkBouncyCastleDeprecation(java.security.Provider provider, java.lang.String service, java.lang.String algorithm) throws java.security.NoSuchAlgorithmException { throw new RuntimeException("Stub!"); }
69
70 public static final int DEFAULT_MAXIMUM_ALLOWABLE_TARGET_API_LEVEL_FOR_BC_DEPRECATION = 27; // 0x1b
71 }
72