• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 1997, 2015, 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 import sun.security.util.*;
29 
30 @SuppressWarnings({"unchecked", "deprecation", "all"})
31 public class KeyUsageExtension extends sun.security.x509.Extension
32         implements sun.security.x509.CertAttrSet<java.lang.String> {
33 
KeyUsageExtension(byte[] bitString)34     public KeyUsageExtension(byte[] bitString) throws java.io.IOException {
35         throw new RuntimeException("Stub!");
36     }
37 
38     @dalvik.annotation.compat.UnsupportedAppUsage
KeyUsageExtension(boolean[] bitString)39     public KeyUsageExtension(boolean[] bitString) throws java.io.IOException {
40         throw new RuntimeException("Stub!");
41     }
42 
KeyUsageExtension(sun.security.util.BitArray bitString)43     public KeyUsageExtension(sun.security.util.BitArray bitString) throws java.io.IOException {
44         throw new RuntimeException("Stub!");
45     }
46 
KeyUsageExtension(java.lang.Boolean critical, java.lang.Object value)47     public KeyUsageExtension(java.lang.Boolean critical, java.lang.Object value)
48             throws java.io.IOException {
49         throw new RuntimeException("Stub!");
50     }
51 
KeyUsageExtension()52     public KeyUsageExtension() {
53         throw new RuntimeException("Stub!");
54     }
55 
encodeThis()56     private void encodeThis() throws java.io.IOException {
57         throw new RuntimeException("Stub!");
58     }
59 
isSet(int position)60     private boolean isSet(int position) {
61         throw new RuntimeException("Stub!");
62     }
63 
set(int position, boolean val)64     private void set(int position, boolean val) {
65         throw new RuntimeException("Stub!");
66     }
67 
set(java.lang.String name, java.lang.Object obj)68     public void set(java.lang.String name, java.lang.Object obj) throws java.io.IOException {
69         throw new RuntimeException("Stub!");
70     }
71 
72     @dalvik.annotation.compat.UnsupportedAppUsage
get(java.lang.String name)73     public java.lang.Boolean get(java.lang.String name) throws java.io.IOException {
74         throw new RuntimeException("Stub!");
75     }
76 
delete(java.lang.String name)77     public void delete(java.lang.String name) throws java.io.IOException {
78         throw new RuntimeException("Stub!");
79     }
80 
toString()81     public java.lang.String toString() {
82         throw new RuntimeException("Stub!");
83     }
84 
encode(java.io.OutputStream out)85     public void encode(java.io.OutputStream out) throws java.io.IOException {
86         throw new RuntimeException("Stub!");
87     }
88 
getElements()89     public java.util.Enumeration<java.lang.String> getElements() {
90         throw new RuntimeException("Stub!");
91     }
92 
getBits()93     public boolean[] getBits() {
94         throw new RuntimeException("Stub!");
95     }
96 
getName()97     public java.lang.String getName() {
98         throw new RuntimeException("Stub!");
99     }
100 
101     public static final java.lang.String CRL_SIGN = "crl_sign";
102 
103     public static final java.lang.String DATA_ENCIPHERMENT = "data_encipherment";
104 
105     public static final java.lang.String DECIPHER_ONLY = "decipher_only";
106 
107     public static final java.lang.String DIGITAL_SIGNATURE = "digital_signature";
108 
109     public static final java.lang.String ENCIPHER_ONLY = "encipher_only";
110 
111     public static final java.lang.String IDENT = "x509.info.extensions.KeyUsage";
112 
113     public static final java.lang.String KEY_AGREEMENT = "key_agreement";
114 
115     public static final java.lang.String KEY_CERTSIGN = "key_certsign";
116 
117     public static final java.lang.String KEY_ENCIPHERMENT = "key_encipherment";
118 
119     public static final java.lang.String NAME = "KeyUsage";
120 
121     public static final java.lang.String NON_REPUDIATION = "non_repudiation";
122 
123     private boolean[] bitString;
124 }
125