1 /*
2 * Copyright (C) 2014 The Android Open Source Project
3 * Copyright (c) 1996, 2013, 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
28 package sun.security.pkcs;
29
30 import java.io.*;
31 import java.util.*;
32 import java.security.*;
33 import java.security.cert.X509Certificate;
34 import sun.security.util.*;
35 import sun.security.x509.AlgorithmId;
36 import sun.security.x509.X500Name;
37
38 @android.annotation.SystemApi(client = android.annotation.SystemApi.Client.MODULE_LIBRARIES)
39 @libcore.api.CorePlatformApi(status = libcore.api.CorePlatformApi.Status.STABLE)
40 @libcore.api.Hide
41 @SuppressWarnings({"unchecked", "deprecation", "all"})
42 public class PKCS7 {
43
44 @android.annotation.SystemApi(client = android.annotation.SystemApi.Client.MODULE_LIBRARIES)
45 @libcore.api.CorePlatformApi(status = libcore.api.CorePlatformApi.Status.STABLE)
46 @libcore.api.Hide
PKCS7(java.io.InputStream in)47 public PKCS7(java.io.InputStream in) throws java.io.IOException, sun.security.pkcs.ParsingException { throw new RuntimeException("Stub!"); }
48
49 @libcore.api.Hide
PKCS7(DerInputStream derin)50 public PKCS7(DerInputStream derin) throws sun.security.pkcs.ParsingException { throw new RuntimeException("Stub!"); }
51
52 @libcore.api.Hide
53 @android.annotation.SystemApi(client = android.annotation.SystemApi.Client.MODULE_LIBRARIES)
54 @libcore.api.CorePlatformApi(status = libcore.api.CorePlatformApi.Status.STABLE)
PKCS7(byte[] bytes)55 public PKCS7(byte[] bytes) throws sun.security.pkcs.ParsingException { throw new RuntimeException("Stub!"); }
56
57 @libcore.api.Hide
PKCS7(sun.security.x509.AlgorithmId[] digestAlgorithmIds, sun.security.pkcs.ContentInfo contentInfo, java.security.cert.X509Certificate[] certificates, java.security.cert.X509CRL[] crls, sun.security.pkcs.SignerInfo[] signerInfos)58 public PKCS7(sun.security.x509.AlgorithmId[] digestAlgorithmIds, sun.security.pkcs.ContentInfo contentInfo, java.security.cert.X509Certificate[] certificates, java.security.cert.X509CRL[] crls, sun.security.pkcs.SignerInfo[] signerInfos) { throw new RuntimeException("Stub!"); }
59
60 @libcore.api.Hide
PKCS7(sun.security.x509.AlgorithmId[] digestAlgorithmIds, sun.security.pkcs.ContentInfo contentInfo, java.security.cert.X509Certificate[] certificates, sun.security.pkcs.SignerInfo[] signerInfos)61 public PKCS7(sun.security.x509.AlgorithmId[] digestAlgorithmIds, sun.security.pkcs.ContentInfo contentInfo, java.security.cert.X509Certificate[] certificates, sun.security.pkcs.SignerInfo[] signerInfos) { throw new RuntimeException("Stub!"); }
62
63 @libcore.api.Hide
encodeSignedData(java.io.OutputStream out)64 public void encodeSignedData(java.io.OutputStream out) throws java.io.IOException { throw new RuntimeException("Stub!"); }
65
66 @libcore.api.Hide
encodeSignedData(DerOutputStream out)67 public void encodeSignedData(DerOutputStream out) throws java.io.IOException { throw new RuntimeException("Stub!"); }
68
69 @libcore.api.Hide
verify(sun.security.pkcs.SignerInfo info, byte[] bytes)70 public sun.security.pkcs.SignerInfo verify(sun.security.pkcs.SignerInfo info, byte[] bytes) throws java.security.NoSuchAlgorithmException, java.security.SignatureException { throw new RuntimeException("Stub!"); }
71
72 @android.annotation.SystemApi(client = android.annotation.SystemApi.Client.MODULE_LIBRARIES)
73 @libcore.api.CorePlatformApi(status = libcore.api.CorePlatformApi.Status.STABLE)
74 @libcore.api.Hide
verify(sun.security.pkcs.SignerInfo info, java.io.InputStream dataInputStream)75 public sun.security.pkcs.SignerInfo verify(sun.security.pkcs.SignerInfo info, java.io.InputStream dataInputStream) throws java.io.IOException, java.security.NoSuchAlgorithmException, java.security.SignatureException { throw new RuntimeException("Stub!"); }
76
77 @android.annotation.SystemApi(client = android.annotation.SystemApi.Client.MODULE_LIBRARIES)
78 @libcore.api.CorePlatformApi(status = libcore.api.CorePlatformApi.Status.STABLE)
79 @libcore.api.Hide
verify(byte[] bytes)80 public sun.security.pkcs.SignerInfo[] verify(byte[] bytes) throws java.security.NoSuchAlgorithmException, java.security.SignatureException { throw new RuntimeException("Stub!"); }
81
82 @libcore.api.Hide
verify()83 public sun.security.pkcs.SignerInfo[] verify() throws java.security.NoSuchAlgorithmException, java.security.SignatureException { throw new RuntimeException("Stub!"); }
84
85 @libcore.api.Hide
getVersion()86 public java.math.BigInteger getVersion() { throw new RuntimeException("Stub!"); }
87
88 @libcore.api.Hide
getDigestAlgorithmIds()89 public sun.security.x509.AlgorithmId[] getDigestAlgorithmIds() { throw new RuntimeException("Stub!"); }
90
91 @libcore.api.Hide
getContentInfo()92 public sun.security.pkcs.ContentInfo getContentInfo() { throw new RuntimeException("Stub!"); }
93
94 @libcore.api.Hide
95 @android.annotation.SystemApi(client = android.annotation.SystemApi.Client.MODULE_LIBRARIES)
96 @libcore.api.CorePlatformApi(status = libcore.api.CorePlatformApi.Status.STABLE)
getCertificates()97 public java.security.cert.X509Certificate[] getCertificates() { throw new RuntimeException("Stub!"); }
98
99 @libcore.api.Hide
getCRLs()100 public java.security.cert.X509CRL[] getCRLs() { throw new RuntimeException("Stub!"); }
101
102 @android.annotation.SystemApi(client = android.annotation.SystemApi.Client.MODULE_LIBRARIES)
103 @libcore.api.CorePlatformApi(status = libcore.api.CorePlatformApi.Status.STABLE)
104 @libcore.api.Hide
getSignerInfos()105 public sun.security.pkcs.SignerInfo[] getSignerInfos() { throw new RuntimeException("Stub!"); }
106
107 @libcore.api.Hide
getCertificate(java.math.BigInteger serial, X500Name issuerName)108 public X509Certificate getCertificate(java.math.BigInteger serial, X500Name issuerName) { throw new RuntimeException("Stub!"); }
109
110 @libcore.api.Hide
toString()111 public java.lang.String toString() { throw new RuntimeException("Stub!"); }
112
113 @libcore.api.Hide
isOldStyle()114 public boolean isOldStyle() { throw new RuntimeException("Stub!"); }
115 }
116