1 /* 2 * Copyright (c) 1996, 2013, 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.pkcs; 27 28 import java.io.*; 29 import sun.security.util.*; 30 import sun.security.x509.*; 31 32 @SuppressWarnings({"unchecked", "deprecation", "all"}) 33 public class PKCS8Key implements java.security.PrivateKey { 34 35 @android.compat.annotation.UnsupportedAppUsage PKCS8Key()36 public PKCS8Key() { 37 throw new RuntimeException("Stub!"); 38 } 39 PKCS8Key(sun.security.x509.AlgorithmId algid, byte[] key)40 private PKCS8Key(sun.security.x509.AlgorithmId algid, byte[] key) 41 throws java.security.InvalidKeyException { 42 throw new RuntimeException("Stub!"); 43 } 44 parse(sun.security.util.DerValue in)45 public static sun.security.pkcs.PKCS8Key parse(sun.security.util.DerValue in) 46 throws java.io.IOException { 47 throw new RuntimeException("Stub!"); 48 } 49 parseKey(sun.security.util.DerValue in)50 public static java.security.PrivateKey parseKey(sun.security.util.DerValue in) 51 throws java.io.IOException { 52 throw new RuntimeException("Stub!"); 53 } 54 parseKeyBits()55 protected void parseKeyBits() throws java.io.IOException, java.security.InvalidKeyException { 56 throw new RuntimeException("Stub!"); 57 } 58 buildPKCS8Key(sun.security.x509.AlgorithmId algid, byte[] key)59 static java.security.PrivateKey buildPKCS8Key(sun.security.x509.AlgorithmId algid, byte[] key) 60 throws java.io.IOException, java.security.InvalidKeyException { 61 throw new RuntimeException("Stub!"); 62 } 63 getAlgorithm()64 public java.lang.String getAlgorithm() { 65 throw new RuntimeException("Stub!"); 66 } 67 getAlgorithmId()68 public sun.security.x509.AlgorithmId getAlgorithmId() { 69 throw new RuntimeException("Stub!"); 70 } 71 encode(sun.security.util.DerOutputStream out)72 public final void encode(sun.security.util.DerOutputStream out) throws java.io.IOException { 73 throw new RuntimeException("Stub!"); 74 } 75 getEncoded()76 public synchronized byte[] getEncoded() { 77 throw new RuntimeException("Stub!"); 78 } 79 getFormat()80 public java.lang.String getFormat() { 81 throw new RuntimeException("Stub!"); 82 } 83 encode()84 public byte[] encode() throws java.security.InvalidKeyException { 85 throw new RuntimeException("Stub!"); 86 } 87 decode(java.io.InputStream in)88 public void decode(java.io.InputStream in) throws java.security.InvalidKeyException { 89 throw new RuntimeException("Stub!"); 90 } 91 decode(byte[] encodedKey)92 public void decode(byte[] encodedKey) throws java.security.InvalidKeyException { 93 throw new RuntimeException("Stub!"); 94 } 95 writeReplace()96 protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { 97 throw new RuntimeException("Stub!"); 98 } 99 readObject(java.io.ObjectInputStream stream)100 private void readObject(java.io.ObjectInputStream stream) throws java.io.IOException { 101 throw new RuntimeException("Stub!"); 102 } 103 encode( sun.security.util.DerOutputStream out, sun.security.x509.AlgorithmId algid, byte[] key)104 static void encode( 105 sun.security.util.DerOutputStream out, sun.security.x509.AlgorithmId algid, byte[] key) 106 throws java.io.IOException { 107 throw new RuntimeException("Stub!"); 108 } 109 equals(java.lang.Object object)110 public boolean equals(java.lang.Object object) { 111 throw new RuntimeException("Stub!"); 112 } 113 hashCode()114 public int hashCode() { 115 throw new RuntimeException("Stub!"); 116 } 117 118 @android.compat.annotation.UnsupportedAppUsage protected sun.security.x509.AlgorithmId algid; 119 120 @android.compat.annotation.UnsupportedAppUsage protected byte[] encodedKey; 121 122 @android.compat.annotation.UnsupportedAppUsage protected byte[] key; 123 124 private static final long serialVersionUID = -3836890099307167124L; // 0xcac0a0c88c95426cL 125 126 public static final java.math.BigInteger version; 127 128 static { 129 version = null; 130 } 131 } 132