1 /* 2 * Copyright (c) 1997, 2014, 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 java.security; 27 28 import dalvik.annotation.compat.UnsupportedAppUsage; 29 30 @SuppressWarnings({"unchecked", "deprecation", "all"}) 31 public abstract class KeyPairGenerator extends java.security.KeyPairGeneratorSpi { 32 KeyPairGenerator(java.lang.String algorithm)33 protected KeyPairGenerator(java.lang.String algorithm) { 34 throw new RuntimeException("Stub!"); 35 } 36 getAlgorithm()37 public java.lang.String getAlgorithm() { 38 throw new RuntimeException("Stub!"); 39 } 40 41 @UnsupportedAppUsage getInstance( sun.security.jca.GetInstance.Instance instance, java.lang.String algorithm)42 private static java.security.KeyPairGenerator getInstance( 43 sun.security.jca.GetInstance.Instance instance, java.lang.String algorithm) { 44 throw new RuntimeException("Stub!"); 45 } 46 getInstance(java.lang.String algorithm)47 public static java.security.KeyPairGenerator getInstance(java.lang.String algorithm) 48 throws java.security.NoSuchAlgorithmException { 49 throw new RuntimeException("Stub!"); 50 } 51 getInstance( java.lang.String algorithm, java.lang.String provider)52 public static java.security.KeyPairGenerator getInstance( 53 java.lang.String algorithm, java.lang.String provider) 54 throws java.security.NoSuchAlgorithmException, java.security.NoSuchProviderException { 55 throw new RuntimeException("Stub!"); 56 } 57 getInstance( java.lang.String algorithm, java.security.Provider provider)58 public static java.security.KeyPairGenerator getInstance( 59 java.lang.String algorithm, java.security.Provider provider) 60 throws java.security.NoSuchAlgorithmException { 61 throw new RuntimeException("Stub!"); 62 } 63 getProvider()64 public final java.security.Provider getProvider() { 65 throw new RuntimeException("Stub!"); 66 } 67 disableFailover()68 void disableFailover() { 69 throw new RuntimeException("Stub!"); 70 } 71 initialize(int keysize)72 public void initialize(int keysize) { 73 throw new RuntimeException("Stub!"); 74 } 75 initialize(int keysize, java.security.SecureRandom random)76 public void initialize(int keysize, java.security.SecureRandom random) { 77 throw new RuntimeException("Stub!"); 78 } 79 initialize(java.security.spec.AlgorithmParameterSpec params)80 public void initialize(java.security.spec.AlgorithmParameterSpec params) 81 throws java.security.InvalidAlgorithmParameterException { 82 throw new RuntimeException("Stub!"); 83 } 84 initialize( java.security.spec.AlgorithmParameterSpec params, java.security.SecureRandom random)85 public void initialize( 86 java.security.spec.AlgorithmParameterSpec params, java.security.SecureRandom random) 87 throws java.security.InvalidAlgorithmParameterException { 88 throw new RuntimeException("Stub!"); 89 } 90 genKeyPair()91 public final java.security.KeyPair genKeyPair() { 92 throw new RuntimeException("Stub!"); 93 } 94 generateKeyPair()95 public java.security.KeyPair generateKeyPair() { 96 throw new RuntimeException("Stub!"); 97 } 98 99 private final java.lang.String algorithm; 100 101 { 102 algorithm = null; 103 } 104 105 java.security.Provider provider; 106 107 @SuppressWarnings({"unchecked", "deprecation", "all"}) 108 private static final class Delegate extends java.security.KeyPairGenerator { 109 Delegate(java.security.KeyPairGeneratorSpi spi, java.lang.String algorithm)110 Delegate(java.security.KeyPairGeneratorSpi spi, java.lang.String algorithm) { 111 super(null); 112 throw new RuntimeException("Stub!"); 113 } 114 Delegate( sun.security.jca.GetInstance.Instance instance, java.util.Iterator<java.security.Provider.Service> serviceIterator, java.lang.String algorithm)115 Delegate( 116 sun.security.jca.GetInstance.Instance instance, 117 java.util.Iterator<java.security.Provider.Service> serviceIterator, 118 java.lang.String algorithm) { 119 super(null); 120 throw new RuntimeException("Stub!"); 121 } 122 nextSpi( java.security.KeyPairGeneratorSpi oldSpi, boolean reinit)123 private java.security.KeyPairGeneratorSpi nextSpi( 124 java.security.KeyPairGeneratorSpi oldSpi, boolean reinit) { 125 throw new RuntimeException("Stub!"); 126 } 127 disableFailover()128 void disableFailover() { 129 throw new RuntimeException("Stub!"); 130 } 131 initialize(int keysize, java.security.SecureRandom random)132 public void initialize(int keysize, java.security.SecureRandom random) { 133 throw new RuntimeException("Stub!"); 134 } 135 initialize( java.security.spec.AlgorithmParameterSpec params, java.security.SecureRandom random)136 public void initialize( 137 java.security.spec.AlgorithmParameterSpec params, java.security.SecureRandom random) 138 throws java.security.InvalidAlgorithmParameterException { 139 throw new RuntimeException("Stub!"); 140 } 141 generateKeyPair()142 public java.security.KeyPair generateKeyPair() { 143 throw new RuntimeException("Stub!"); 144 } 145 146 private static final int I_NONE = 1; // 0x1 147 148 private static final int I_PARAMS = 3; // 0x3 149 150 private static final int I_SIZE = 2; // 0x2 151 152 private int initKeySize; 153 154 private java.security.spec.AlgorithmParameterSpec initParams; 155 156 private java.security.SecureRandom initRandom; 157 158 private int initType; 159 160 private final java.lang.Object lock; 161 162 { 163 lock = null; 164 } 165 166 private java.util.Iterator<java.security.Provider.Service> serviceIterator; 167 168 private volatile java.security.KeyPairGeneratorSpi spi; 169 } 170 } 171