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.x509; 27 28 @SuppressWarnings({"unchecked", "deprecation", "all"}) 29 public class X509Key implements java.security.PublicKey { 30 31 @android.compat.annotation.UnsupportedAppUsage X509Key()32 public X509Key() { 33 throw new RuntimeException("Stub!"); 34 } 35 X509Key(sun.security.x509.AlgorithmId algid, sun.security.util.BitArray key)36 private X509Key(sun.security.x509.AlgorithmId algid, sun.security.util.BitArray key) 37 throws java.security.InvalidKeyException { 38 throw new RuntimeException("Stub!"); 39 } 40 setKey(sun.security.util.BitArray key)41 protected void setKey(sun.security.util.BitArray key) { 42 throw new RuntimeException("Stub!"); 43 } 44 getKey()45 protected sun.security.util.BitArray getKey() { 46 throw new RuntimeException("Stub!"); 47 } 48 49 @android.compat.annotation.UnsupportedAppUsage parse(sun.security.util.DerValue in)50 public static java.security.PublicKey parse(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 buildX509Key( sun.security.x509.AlgorithmId algid, sun.security.util.BitArray key)59 static java.security.PublicKey buildX509Key( 60 sun.security.x509.AlgorithmId algid, sun.security.util.BitArray key) 61 throws java.io.IOException, java.security.InvalidKeyException { 62 throw new RuntimeException("Stub!"); 63 } 64 getAlgorithm()65 public java.lang.String getAlgorithm() { 66 throw new RuntimeException("Stub!"); 67 } 68 getAlgorithmId()69 public sun.security.x509.AlgorithmId getAlgorithmId() { 70 throw new RuntimeException("Stub!"); 71 } 72 encode(sun.security.util.DerOutputStream out)73 public final void encode(sun.security.util.DerOutputStream out) throws java.io.IOException { 74 throw new RuntimeException("Stub!"); 75 } 76 getEncoded()77 public byte[] getEncoded() { 78 throw new RuntimeException("Stub!"); 79 } 80 getEncodedInternal()81 public byte[] getEncodedInternal() throws java.security.InvalidKeyException { 82 throw new RuntimeException("Stub!"); 83 } 84 getFormat()85 public java.lang.String getFormat() { 86 throw new RuntimeException("Stub!"); 87 } 88 encode()89 public byte[] encode() throws java.security.InvalidKeyException { 90 throw new RuntimeException("Stub!"); 91 } 92 toString()93 public java.lang.String toString() { 94 throw new RuntimeException("Stub!"); 95 } 96 decode(java.io.InputStream in)97 public void decode(java.io.InputStream in) throws java.security.InvalidKeyException { 98 throw new RuntimeException("Stub!"); 99 } 100 decode(byte[] encodedKey)101 public void decode(byte[] encodedKey) throws java.security.InvalidKeyException { 102 throw new RuntimeException("Stub!"); 103 } 104 writeObject(java.io.ObjectOutputStream stream)105 private void writeObject(java.io.ObjectOutputStream stream) throws java.io.IOException { 106 throw new RuntimeException("Stub!"); 107 } 108 readObject(java.io.ObjectInputStream stream)109 private void readObject(java.io.ObjectInputStream stream) throws java.io.IOException { 110 throw new RuntimeException("Stub!"); 111 } 112 equals(java.lang.Object obj)113 public boolean equals(java.lang.Object obj) { 114 throw new RuntimeException("Stub!"); 115 } 116 hashCode()117 public int hashCode() { 118 throw new RuntimeException("Stub!"); 119 } 120 encode( sun.security.util.DerOutputStream out, sun.security.x509.AlgorithmId algid, sun.security.util.BitArray key)121 static void encode( 122 sun.security.util.DerOutputStream out, 123 sun.security.x509.AlgorithmId algid, 124 sun.security.util.BitArray key) 125 throws java.io.IOException { 126 throw new RuntimeException("Stub!"); 127 } 128 129 @android.compat.annotation.UnsupportedAppUsage protected sun.security.x509.AlgorithmId algid; 130 131 private sun.security.util.BitArray bitStringKey; 132 133 @android.compat.annotation.UnsupportedAppUsage protected byte[] encodedKey; 134 135 @Deprecated @android.compat.annotation.UnsupportedAppUsage protected byte[] key; 136 137 private static final long serialVersionUID = -5359250853002055002L; // 0xb5a01dbe649a72a6L 138 139 @Deprecated @android.compat.annotation.UnsupportedAppUsage private int unusedBits = 0; // 0x0 140 } 141