1 /* 2 * Copyright (c) 2003, 2016, Oracle and/or its affiliates. All rights reserved. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * This code is free software; you can redistribute it and/or modify it 6 * under the terms of the GNU General Public License version 2 only, as 7 * published by the Free Software Foundation. Oracle designates this 8 * particular file as subject to the "Classpath" exception as provided 9 * by Oracle in the LICENSE file that accompanied this code. 10 * 11 * This code is distributed in the hope that it will be useful, but WITHOUT 12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 * version 2 for more details (a copy is included in the LICENSE file that 15 * accompanied this code). 16 * 17 * You should have received a copy of the GNU General Public License version 18 * 2 along with this work; if not, write to the Free Software Foundation, 19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 * 21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 * or visit www.oracle.com if you need additional information or have any 23 * questions. 24 */ 25 26 package sun.security.jca; 27 28 import java.lang.reflect.*; 29 import java.security.*; 30 31 @SuppressWarnings({"unchecked", "deprecation", "all"}) 32 final class ProviderConfig { 33 ProviderConfig(java.lang.String className, java.lang.String argument)34 ProviderConfig(java.lang.String className, java.lang.String argument) { 35 throw new RuntimeException("Stub!"); 36 } 37 ProviderConfig(java.lang.String className)38 ProviderConfig(java.lang.String className) { 39 throw new RuntimeException("Stub!"); 40 } 41 ProviderConfig(java.security.Provider provider)42 ProviderConfig(java.security.Provider provider) { 43 throw new RuntimeException("Stub!"); 44 } 45 checkSunPKCS11Solaris()46 private void checkSunPKCS11Solaris() { 47 throw new RuntimeException("Stub!"); 48 } 49 50 @android.compat.annotation.UnsupportedAppUsage(maxTargetSdk = 30, trackingBug = 170729553) hasArgument()51 private boolean hasArgument() { 52 throw new RuntimeException("Stub!"); 53 } 54 shouldLoad()55 private boolean shouldLoad() { 56 throw new RuntimeException("Stub!"); 57 } 58 59 @android.compat.annotation.UnsupportedAppUsage(maxTargetSdk = 30, trackingBug = 170729553) disableLoad()60 private void disableLoad() { 61 throw new RuntimeException("Stub!"); 62 } 63 isLoaded()64 boolean isLoaded() { 65 throw new RuntimeException("Stub!"); 66 } 67 equals(java.lang.Object obj)68 public boolean equals(java.lang.Object obj) { 69 throw new RuntimeException("Stub!"); 70 } 71 hashCode()72 public int hashCode() { 73 throw new RuntimeException("Stub!"); 74 } 75 toString()76 public java.lang.String toString() { 77 throw new RuntimeException("Stub!"); 78 } 79 getProvider()80 synchronized java.security.Provider getProvider() { 81 throw new RuntimeException("Stub!"); 82 } 83 doLoadProvider()84 private java.security.Provider doLoadProvider() { 85 throw new RuntimeException("Stub!"); 86 } 87 initProvider( java.lang.String className, java.lang.ClassLoader cl)88 private java.security.Provider initProvider( 89 java.lang.String className, java.lang.ClassLoader cl) throws java.lang.Exception { 90 throw new RuntimeException("Stub!"); 91 } 92 expand(java.lang.String value)93 private static java.lang.String expand(java.lang.String value) { 94 throw new RuntimeException("Stub!"); 95 } 96 97 @android.compat.annotation.UnsupportedAppUsage(maxTargetSdk = 30, trackingBug = 170729553) private static final java.lang.Class[] CL_STRING; 98 99 static { 100 CL_STRING = new java.lang.Class[0]; 101 } 102 103 private static final int MAX_LOAD_TRIES = 30; // 0x1e 104 105 private static final java.lang.String P11_SOL_ARG = 106 "${java.home}/lib/security/sunpkcs11-solaris.cfg"; 107 108 private static final java.lang.String P11_SOL_NAME = "sun.security.pkcs11.SunPKCS11"; 109 110 @android.compat.annotation.UnsupportedAppUsage(maxTargetSdk = 30, trackingBug = 170729553) private final java.lang.String argument; 111 112 { 113 argument = null; 114 } 115 116 private final java.lang.String className; 117 118 { 119 className = null; 120 } 121 122 private static final sun.security.util.Debug debug; 123 124 static { 125 debug = null; 126 } 127 128 private boolean isLoading; 129 130 private volatile java.security.Provider provider; 131 132 private int tries; 133 } 134