1 /*
2 * Copyright (c) 1996, 2021, 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
27 package java.security;
28
29 @SuppressWarnings({"unchecked", "deprecation", "all"})
30 public class SecureRandom extends java.util.Random {
31
SecureRandom()32 public SecureRandom() { throw new RuntimeException("Stub!"); }
33
SecureRandom(byte[] seed)34 public SecureRandom(byte[] seed) { throw new RuntimeException("Stub!"); }
35
SecureRandom(java.security.SecureRandomSpi secureRandomSpi, java.security.Provider provider)36 protected SecureRandom(java.security.SecureRandomSpi secureRandomSpi, java.security.Provider provider) { throw new RuntimeException("Stub!"); }
37
getInstance(java.lang.String algorithm)38 public static java.security.SecureRandom getInstance(java.lang.String algorithm) throws java.security.NoSuchAlgorithmException { throw new RuntimeException("Stub!"); }
39
getInstance(java.lang.String algorithm, java.lang.String provider)40 public static java.security.SecureRandom getInstance(java.lang.String algorithm, java.lang.String provider) throws java.security.NoSuchAlgorithmException, java.security.NoSuchProviderException { throw new RuntimeException("Stub!"); }
41
getInstance(java.lang.String algorithm, java.security.Provider provider)42 public static java.security.SecureRandom getInstance(java.lang.String algorithm, java.security.Provider provider) throws java.security.NoSuchAlgorithmException { throw new RuntimeException("Stub!"); }
43
44 @android.annotation.FlaggedApi(com.android.libcore.Flags.FLAG_V_APIS)
getInstance(java.lang.String algorithm, java.security.SecureRandomParameters params)45 public static java.security.SecureRandom getInstance(java.lang.String algorithm, java.security.SecureRandomParameters params) throws java.security.NoSuchAlgorithmException { throw new RuntimeException("Stub!"); }
46
47 @android.annotation.FlaggedApi(com.android.libcore.Flags.FLAG_V_APIS)
getInstance(java.lang.String algorithm, java.security.SecureRandomParameters params, java.lang.String provider)48 public static java.security.SecureRandom getInstance(java.lang.String algorithm, java.security.SecureRandomParameters params, java.lang.String provider) throws java.security.NoSuchAlgorithmException, java.security.NoSuchProviderException { throw new RuntimeException("Stub!"); }
49
50 @android.annotation.FlaggedApi(com.android.libcore.Flags.FLAG_V_APIS)
getInstance(java.lang.String algorithm, java.security.SecureRandomParameters params, java.security.Provider provider)51 public static java.security.SecureRandom getInstance(java.lang.String algorithm, java.security.SecureRandomParameters params, java.security.Provider provider) throws java.security.NoSuchAlgorithmException { throw new RuntimeException("Stub!"); }
52
getProvider()53 public final java.security.Provider getProvider() { throw new RuntimeException("Stub!"); }
54
getAlgorithm()55 public java.lang.String getAlgorithm() { throw new RuntimeException("Stub!"); }
56
toString()57 public java.lang.String toString() { throw new RuntimeException("Stub!"); }
58
59 @android.annotation.FlaggedApi(com.android.libcore.Flags.FLAG_V_APIS)
getParameters()60 public java.security.SecureRandomParameters getParameters() { throw new RuntimeException("Stub!"); }
61
setSeed(byte[] seed)62 public void setSeed(byte[] seed) { throw new RuntimeException("Stub!"); }
63
setSeed(long seed)64 public void setSeed(long seed) { throw new RuntimeException("Stub!"); }
65
nextBytes(byte[] bytes)66 public void nextBytes(byte[] bytes) { throw new RuntimeException("Stub!"); }
67
68 @android.annotation.FlaggedApi(com.android.libcore.Flags.FLAG_V_APIS)
nextBytes(byte[] bytes, java.security.SecureRandomParameters params)69 public void nextBytes(byte[] bytes, java.security.SecureRandomParameters params) { throw new RuntimeException("Stub!"); }
70
next(int numBits)71 protected final int next(int numBits) { throw new RuntimeException("Stub!"); }
72
getSeed(int numBytes)73 public static byte[] getSeed(int numBytes) { throw new RuntimeException("Stub!"); }
74
generateSeed(int numBytes)75 public byte[] generateSeed(int numBytes) { throw new RuntimeException("Stub!"); }
76
getInstanceStrong()77 public static java.security.SecureRandom getInstanceStrong() throws java.security.NoSuchAlgorithmException { throw new RuntimeException("Stub!"); }
78
79 @android.annotation.FlaggedApi(com.android.libcore.Flags.FLAG_V_APIS)
reseed()80 public void reseed() { throw new RuntimeException("Stub!"); }
81
82 @android.annotation.FlaggedApi(com.android.libcore.Flags.FLAG_V_APIS)
reseed(java.security.SecureRandomParameters params)83 public void reseed(java.security.SecureRandomParameters params) { throw new RuntimeException("Stub!"); }
84 }
85
86