1 /*
2  * Copyright (c) 1996, 2011, 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 
27 package sun.security.pkcs;
28 
29 import java.io.*;
30 import sun.security.util.*;
31 
32 /**
33  * A ContentInfo type, as defined in PKCS#7.
34  *
35  * @author Benjamin Renaud
36  */
37 
38 @SuppressWarnings({"unchecked", "deprecation", "all"})
39 @libcore.api.Hide
40 public class ContentInfo {
41 
ContentInfo(sun.security.util.ObjectIdentifier contentType, sun.security.util.DerValue content)42 public ContentInfo(sun.security.util.ObjectIdentifier contentType, sun.security.util.DerValue content) { throw new RuntimeException("Stub!"); }
43 
44 /**
45  * Make a contentInfo of type data.
46  */
47 
ContentInfo(byte[] bytes)48 public ContentInfo(byte[] bytes) { throw new RuntimeException("Stub!"); }
49 
50 /**
51  * Parses a PKCS#7 content info.
52  */
53 
ContentInfo(sun.security.util.DerInputStream derin)54 public ContentInfo(sun.security.util.DerInputStream derin) throws java.io.IOException, sun.security.pkcs.ParsingException { throw new RuntimeException("Stub!"); }
55 
56 /**
57  * Parses a PKCS#7 content info.
58  *
59  * <p>This constructor is used only for backwards compatibility with
60  * PKCS#7 blocks that were generated using JDK1.1.x.
61  *
62  * @param derin the ASN.1 encoding of the content info.
63  * @param oldStyle flag indicating whether or not the given content info
64  * is encoded according to JDK1.1.x.
65  */
66 
ContentInfo(sun.security.util.DerInputStream derin, boolean oldStyle)67 public ContentInfo(sun.security.util.DerInputStream derin, boolean oldStyle) throws java.io.IOException, sun.security.pkcs.ParsingException { throw new RuntimeException("Stub!"); }
68 
getContent()69 public sun.security.util.DerValue getContent() { throw new RuntimeException("Stub!"); }
70 
getContentType()71 public sun.security.util.ObjectIdentifier getContentType() { throw new RuntimeException("Stub!"); }
72 
getData()73 public byte[] getData() throws java.io.IOException { throw new RuntimeException("Stub!"); }
74 
encode(sun.security.util.DerOutputStream out)75 public void encode(sun.security.util.DerOutputStream out) throws java.io.IOException { throw new RuntimeException("Stub!"); }
76 
77 /**
78  * Returns a byte array representation of the data held in
79  * the content field.
80  */
81 
getContentBytes()82 public byte[] getContentBytes() throws java.io.IOException { throw new RuntimeException("Stub!"); }
83 
toString()84 public java.lang.String toString() { throw new RuntimeException("Stub!"); }
85 
86 public static sun.security.util.ObjectIdentifier DATA_OID;
87 
88 public static sun.security.util.ObjectIdentifier DIGESTED_DATA_OID;
89 
90 public static sun.security.util.ObjectIdentifier ENCRYPTED_DATA_OID;
91 
92 public static sun.security.util.ObjectIdentifier ENVELOPED_DATA_OID;
93 
94 public static sun.security.util.ObjectIdentifier NETSCAPE_CERT_SEQUENCE_OID;
95 
96 public static sun.security.util.ObjectIdentifier OLD_DATA_OID;
97 
98 public static sun.security.util.ObjectIdentifier OLD_SIGNED_DATA_OID;
99 
100 public static sun.security.util.ObjectIdentifier PKCS7_OID;
101 
102 public static sun.security.util.ObjectIdentifier SIGNED_AND_ENVELOPED_DATA_OID;
103 
104 public static sun.security.util.ObjectIdentifier SIGNED_DATA_OID;
105 
106 public static sun.security.util.ObjectIdentifier TIMESTAMP_TOKEN_INFO_OID;
107 }
108 
109