1 /* 2 * Copyright (c) 1997, 2006, 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 29 @SuppressWarnings({"unchecked", "deprecation", "all"}) 30 public class PKCS9Attributes { 31 PKCS9Attributes( sun.security.util.ObjectIdentifier[] permittedAttributes, sun.security.util.DerInputStream in)32 public PKCS9Attributes( 33 sun.security.util.ObjectIdentifier[] permittedAttributes, 34 sun.security.util.DerInputStream in) 35 throws java.io.IOException { 36 throw new RuntimeException("Stub!"); 37 } 38 39 @android.compat.annotation.UnsupportedAppUsage PKCS9Attributes(sun.security.util.DerInputStream in)40 public PKCS9Attributes(sun.security.util.DerInputStream in) throws java.io.IOException { 41 throw new RuntimeException("Stub!"); 42 } 43 44 @android.compat.annotation.UnsupportedAppUsage PKCS9Attributes(sun.security.util.DerInputStream in, boolean ignoreUnsupportedAttributes)45 public PKCS9Attributes(sun.security.util.DerInputStream in, boolean ignoreUnsupportedAttributes) 46 throws java.io.IOException { 47 throw new RuntimeException("Stub!"); 48 } 49 50 @android.compat.annotation.UnsupportedAppUsage PKCS9Attributes(sun.security.pkcs.PKCS9Attribute[] attribs)51 public PKCS9Attributes(sun.security.pkcs.PKCS9Attribute[] attribs) 52 throws java.io.IOException, java.lang.IllegalArgumentException { 53 throw new RuntimeException("Stub!"); 54 } 55 decode(sun.security.util.DerInputStream in)56 private byte[] decode(sun.security.util.DerInputStream in) throws java.io.IOException { 57 throw new RuntimeException("Stub!"); 58 } 59 60 @android.compat.annotation.UnsupportedAppUsage encode(byte tag, java.io.OutputStream out)61 public void encode(byte tag, java.io.OutputStream out) throws java.io.IOException { 62 throw new RuntimeException("Stub!"); 63 } 64 generateDerEncoding()65 private byte[] generateDerEncoding() throws java.io.IOException { 66 throw new RuntimeException("Stub!"); 67 } 68 69 @android.compat.annotation.UnsupportedAppUsage getDerEncoding()70 public byte[] getDerEncoding() throws java.io.IOException { 71 throw new RuntimeException("Stub!"); 72 } 73 getAttribute(sun.security.util.ObjectIdentifier oid)74 public sun.security.pkcs.PKCS9Attribute getAttribute(sun.security.util.ObjectIdentifier oid) { 75 throw new RuntimeException("Stub!"); 76 } 77 78 @android.compat.annotation.UnsupportedAppUsage(maxTargetSdk = 30, trackingBug = 170729553) getAttribute(java.lang.String name)79 public sun.security.pkcs.PKCS9Attribute getAttribute(java.lang.String name) { 80 throw new RuntimeException("Stub!"); 81 } 82 getAttributes()83 public sun.security.pkcs.PKCS9Attribute[] getAttributes() { 84 throw new RuntimeException("Stub!"); 85 } 86 87 @android.compat.annotation.UnsupportedAppUsage getAttributeValue(sun.security.util.ObjectIdentifier oid)88 public java.lang.Object getAttributeValue(sun.security.util.ObjectIdentifier oid) 89 throws java.io.IOException { 90 throw new RuntimeException("Stub!"); 91 } 92 getAttributeValue(java.lang.String name)93 public java.lang.Object getAttributeValue(java.lang.String name) throws java.io.IOException { 94 throw new RuntimeException("Stub!"); 95 } 96 toString()97 public java.lang.String toString() { 98 throw new RuntimeException("Stub!"); 99 } 100 castToDerEncoder(java.lang.Object[] objs)101 static sun.security.util.DerEncoder[] castToDerEncoder(java.lang.Object[] objs) { 102 throw new RuntimeException("Stub!"); 103 } 104 105 private final java.util.Hashtable< 106 sun.security.util.ObjectIdentifier, sun.security.pkcs.PKCS9Attribute> 107 attributes; 108 109 { 110 attributes = null; 111 } 112 113 private final byte[] derEncoding; 114 115 { 116 derEncoding = new byte[0]; 117 } 118 119 private boolean ignoreUnsupportedAttributes = false; 120 121 private final java.util.Hashtable< 122 sun.security.util.ObjectIdentifier, sun.security.util.ObjectIdentifier> 123 permittedAttributes; 124 125 { 126 permittedAttributes = null; 127 } 128 } 129