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 package sun.security.jca; 28 29 30 @SuppressWarnings({"unchecked", "deprecation", "all"}) 31 public class Providers { 32 Providers()33 private Providers() { 34 throw new RuntimeException("Stub!"); 35 } 36 getSunProvider()37 public static java.security.Provider getSunProvider() { 38 throw new RuntimeException("Stub!"); 39 } 40 41 @android.compat.annotation.UnsupportedAppUsage(maxTargetSdk = 30, trackingBug = 170729553) startJarVerification()42 public static java.lang.Object startJarVerification() { 43 throw new RuntimeException("Stub!"); 44 } 45 46 @android.compat.annotation.UnsupportedAppUsage(maxTargetSdk = 30, trackingBug = 170729553) stopJarVerification(java.lang.Object obj)47 public static void stopJarVerification(java.lang.Object obj) { 48 throw new RuntimeException("Stub!"); 49 } 50 51 @android.compat.annotation.UnsupportedAppUsage getProviderList()52 public static sun.security.jca.ProviderList getProviderList() { 53 throw new RuntimeException("Stub!"); 54 } 55 setProviderList(sun.security.jca.ProviderList newList)56 public static void setProviderList(sun.security.jca.ProviderList newList) { 57 throw new RuntimeException("Stub!"); 58 } 59 getFullProviderList()60 public static sun.security.jca.ProviderList getFullProviderList() { 61 throw new RuntimeException("Stub!"); 62 } 63 getSystemProviderList()64 private static sun.security.jca.ProviderList getSystemProviderList() { 65 throw new RuntimeException("Stub!"); 66 } 67 setSystemProviderList(sun.security.jca.ProviderList list)68 private static void setSystemProviderList(sun.security.jca.ProviderList list) { 69 throw new RuntimeException("Stub!"); 70 } 71 getThreadProviderList()72 public static sun.security.jca.ProviderList getThreadProviderList() { 73 throw new RuntimeException("Stub!"); 74 } 75 changeThreadProviderList(sun.security.jca.ProviderList list)76 private static void changeThreadProviderList(sun.security.jca.ProviderList list) { 77 throw new RuntimeException("Stub!"); 78 } 79 beginThreadProviderList( sun.security.jca.ProviderList list)80 public static synchronized sun.security.jca.ProviderList beginThreadProviderList( 81 sun.security.jca.ProviderList list) { 82 throw new RuntimeException("Stub!"); 83 } 84 endThreadProviderList(sun.security.jca.ProviderList list)85 public static synchronized void endThreadProviderList(sun.security.jca.ProviderList list) { 86 throw new RuntimeException("Stub!"); 87 } 88 setMaximumAllowableApiLevelForBcDeprecation(int targetApiLevel)89 public static void setMaximumAllowableApiLevelForBcDeprecation(int targetApiLevel) { 90 throw new RuntimeException("Stub!"); 91 } 92 getMaximumAllowableApiLevelForBcDeprecation()93 public static int getMaximumAllowableApiLevelForBcDeprecation() { 94 throw new RuntimeException("Stub!"); 95 } 96 checkBouncyCastleDeprecation( java.lang.String provider, java.lang.String service, java.lang.String algorithm)97 public static synchronized void checkBouncyCastleDeprecation( 98 java.lang.String provider, java.lang.String service, java.lang.String algorithm) 99 throws java.security.NoSuchAlgorithmException { 100 throw new RuntimeException("Stub!"); 101 } 102 checkBouncyCastleDeprecation( java.security.Provider provider, java.lang.String service, java.lang.String algorithm)103 public static synchronized void checkBouncyCastleDeprecation( 104 java.security.Provider provider, java.lang.String service, java.lang.String algorithm) 105 throws java.security.NoSuchAlgorithmException { 106 throw new RuntimeException("Stub!"); 107 } 108 checkBouncyCastleDeprecation( java.lang.String service, java.lang.String algorithm)109 private static void checkBouncyCastleDeprecation( 110 java.lang.String service, java.lang.String algorithm) 111 throws java.security.NoSuchAlgorithmException { 112 throw new RuntimeException("Stub!"); 113 } 114 115 private static final java.lang.String BACKUP_PROVIDER_CLASSNAME = 116 "sun.security.provider.VerificationProvider"; 117 118 public static final int DEFAULT_MAXIMUM_ALLOWABLE_TARGET_API_LEVEL_FOR_BC_DEPRECATION = 119 27; // 0x1b 120 121 private static final java.util.Set<java.lang.String> DEPRECATED_ALGORITHMS; 122 123 static { 124 DEPRECATED_ALGORITHMS = null; 125 } 126 127 private static volatile java.security.Provider SYSTEM_BOUNCY_CASTLE_PROVIDER; 128 129 private static final java.lang.String[] jarVerificationProviders; 130 131 static { 132 jarVerificationProviders = new java.lang.String[0]; 133 } 134 135 private static int maximumAllowableApiLevelForBcDeprecation = 27; // 0x1b 136 137 private static volatile sun.security.jca.ProviderList providerList; 138 139 private static final java.lang.ThreadLocal<sun.security.jca.ProviderList> threadLists; 140 141 static { 142 threadLists = null; 143 } 144 145 private static volatile int threadListsUsed; 146 } 147