1 /* 2 * Copyright (C) 2014 The Android Open Source Project 3 * Copyright (c) 1996, 2016, Oracle and/or its affiliates. All rights reserved. 4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 5 * 6 * This code is free software; you can redistribute it and/or modify it 7 * under the terms of the GNU General Public License version 2 only, as 8 * published by the Free Software Foundation. Oracle designates this 9 * particular file as subject to the "Classpath" exception as provided 10 * by Oracle in the LICENSE file that accompanied this code. 11 * 12 * This code is distributed in the hope that it will be useful, but WITHOUT 13 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 14 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 15 * version 2 for more details (a copy is included in the LICENSE file that 16 * accompanied this code). 17 * 18 * You should have received a copy of the GNU General Public License version 19 * 2 along with this work; if not, write to the Free Software Foundation, 20 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 21 * 22 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 23 * or visit www.oracle.com if you need additional information or have any 24 * questions. 25 */ 26 27 package sun.security.pkcs; 28 29 30 @SuppressWarnings({"unchecked", "deprecation", "all"}) 31 public class SignerInfo implements sun.security.util.DerEncoder { 32 SignerInfo()33 public SignerInfo() { 34 throw new RuntimeException("Stub!"); 35 } 36 37 @android.compat.annotation.UnsupportedAppUsage SignerInfo( sun.security.x509.X500Name issuerName, java.math.BigInteger serial, sun.security.x509.AlgorithmId digestAlgorithmId, sun.security.x509.AlgorithmId digestEncryptionAlgorithmId, byte[] encryptedDigest)38 public SignerInfo( 39 sun.security.x509.X500Name issuerName, 40 java.math.BigInteger serial, 41 sun.security.x509.AlgorithmId digestAlgorithmId, 42 sun.security.x509.AlgorithmId digestEncryptionAlgorithmId, 43 byte[] encryptedDigest) { 44 throw new RuntimeException("Stub!"); 45 } 46 47 @android.compat.annotation.UnsupportedAppUsage SignerInfo( sun.security.x509.X500Name issuerName, java.math.BigInteger serial, sun.security.x509.AlgorithmId digestAlgorithmId, sun.security.pkcs.PKCS9Attributes authenticatedAttributes, sun.security.x509.AlgorithmId digestEncryptionAlgorithmId, byte[] encryptedDigest, sun.security.pkcs.PKCS9Attributes unauthenticatedAttributes)48 public SignerInfo( 49 sun.security.x509.X500Name issuerName, 50 java.math.BigInteger serial, 51 sun.security.x509.AlgorithmId digestAlgorithmId, 52 sun.security.pkcs.PKCS9Attributes authenticatedAttributes, 53 sun.security.x509.AlgorithmId digestEncryptionAlgorithmId, 54 byte[] encryptedDigest, 55 sun.security.pkcs.PKCS9Attributes unauthenticatedAttributes) { 56 throw new RuntimeException("Stub!"); 57 } 58 SignerInfo(sun.security.util.DerInputStream derin)59 public SignerInfo(sun.security.util.DerInputStream derin) 60 throws java.io.IOException, sun.security.pkcs.ParsingException { 61 throw new RuntimeException("Stub!"); 62 } 63 SignerInfo(sun.security.util.DerInputStream derin, boolean oldStyle)64 public SignerInfo(sun.security.util.DerInputStream derin, boolean oldStyle) 65 throws java.io.IOException, sun.security.pkcs.ParsingException { 66 throw new RuntimeException("Stub!"); 67 } 68 encode(sun.security.util.DerOutputStream out)69 public void encode(sun.security.util.DerOutputStream out) throws java.io.IOException { 70 throw new RuntimeException("Stub!"); 71 } 72 derEncode(java.io.OutputStream out)73 public void derEncode(java.io.OutputStream out) throws java.io.IOException { 74 throw new RuntimeException("Stub!"); 75 } 76 77 @android.compat.annotation.UnsupportedAppUsage getCertificate(sun.security.pkcs.PKCS7 block)78 public java.security.cert.X509Certificate getCertificate(sun.security.pkcs.PKCS7 block) 79 throws java.io.IOException { 80 throw new RuntimeException("Stub!"); 81 } 82 83 @android.compat.annotation.UnsupportedAppUsage getCertificateChain( sun.security.pkcs.PKCS7 block)84 public java.util.ArrayList<java.security.cert.X509Certificate> getCertificateChain( 85 sun.security.pkcs.PKCS7 block) throws java.io.IOException { 86 throw new RuntimeException("Stub!"); 87 } 88 verify(sun.security.pkcs.PKCS7 block, byte[] data)89 sun.security.pkcs.SignerInfo verify(sun.security.pkcs.PKCS7 block, byte[] data) 90 throws java.security.NoSuchAlgorithmException, java.security.SignatureException { 91 throw new RuntimeException("Stub!"); 92 } 93 verify( sun.security.pkcs.PKCS7 block, java.io.InputStream inputStream)94 sun.security.pkcs.SignerInfo verify( 95 sun.security.pkcs.PKCS7 block, java.io.InputStream inputStream) 96 throws java.io.IOException, java.security.NoSuchAlgorithmException, 97 java.security.SignatureException { 98 throw new RuntimeException("Stub!"); 99 } 100 verify(sun.security.pkcs.PKCS7 block)101 sun.security.pkcs.SignerInfo verify(sun.security.pkcs.PKCS7 block) 102 throws java.security.NoSuchAlgorithmException, java.security.SignatureException { 103 throw new RuntimeException("Stub!"); 104 } 105 getVersion()106 public java.math.BigInteger getVersion() { 107 throw new RuntimeException("Stub!"); 108 } 109 getIssuerName()110 public sun.security.x509.X500Name getIssuerName() { 111 throw new RuntimeException("Stub!"); 112 } 113 getCertificateSerialNumber()114 public java.math.BigInteger getCertificateSerialNumber() { 115 throw new RuntimeException("Stub!"); 116 } 117 118 @android.compat.annotation.UnsupportedAppUsage getDigestAlgorithmId()119 public sun.security.x509.AlgorithmId getDigestAlgorithmId() { 120 throw new RuntimeException("Stub!"); 121 } 122 getAuthenticatedAttributes()123 public sun.security.pkcs.PKCS9Attributes getAuthenticatedAttributes() { 124 throw new RuntimeException("Stub!"); 125 } 126 127 @android.compat.annotation.UnsupportedAppUsage getDigestEncryptionAlgorithmId()128 public sun.security.x509.AlgorithmId getDigestEncryptionAlgorithmId() { 129 throw new RuntimeException("Stub!"); 130 } 131 132 @android.compat.annotation.UnsupportedAppUsage(maxTargetSdk = 30, trackingBug = 170729553) getEncryptedDigest()133 public byte[] getEncryptedDigest() { 134 throw new RuntimeException("Stub!"); 135 } 136 getUnauthenticatedAttributes()137 public sun.security.pkcs.PKCS9Attributes getUnauthenticatedAttributes() { 138 throw new RuntimeException("Stub!"); 139 } 140 getTsToken()141 public sun.security.pkcs.PKCS7 getTsToken() throws java.io.IOException { 142 throw new RuntimeException("Stub!"); 143 } 144 getTimestamp()145 public java.security.Timestamp getTimestamp() 146 throws java.security.cert.CertificateException, java.io.IOException, 147 java.security.NoSuchAlgorithmException, java.security.SignatureException { 148 throw new RuntimeException("Stub!"); 149 } 150 verifyTimestamp(sun.security.timestamp.TimestampToken token)151 private void verifyTimestamp(sun.security.timestamp.TimestampToken token) 152 throws java.security.NoSuchAlgorithmException, java.security.SignatureException { 153 throw new RuntimeException("Stub!"); 154 } 155 toString()156 public java.lang.String toString() { 157 throw new RuntimeException("Stub!"); 158 } 159 160 private static final java.util.Set<java.security.CryptoPrimitive> DIGEST_PRIMITIVE_SET; 161 162 static { 163 DIGEST_PRIMITIVE_SET = null; 164 } 165 166 private static final sun.security.util.DisabledAlgorithmConstraints JAR_DISABLED_CHECK; 167 168 static { 169 JAR_DISABLED_CHECK = null; 170 } 171 172 private static final java.util.Set<java.security.CryptoPrimitive> SIG_PRIMITIVE_SET; 173 174 static { 175 SIG_PRIMITIVE_SET = null; 176 } 177 178 sun.security.pkcs.PKCS9Attributes authenticatedAttributes; 179 180 java.math.BigInteger certificateSerialNumber; 181 182 sun.security.x509.AlgorithmId digestAlgorithmId; 183 184 sun.security.x509.AlgorithmId digestEncryptionAlgorithmId; 185 186 byte[] encryptedDigest; 187 188 private boolean hasTimestamp = true; 189 190 sun.security.x509.X500Name issuerName; 191 192 java.security.Timestamp timestamp; 193 194 sun.security.pkcs.PKCS9Attributes unauthenticatedAttributes; 195 196 java.math.BigInteger version; 197 } 198