src/java.base/share/classes/sun/security/x509/PKIXExtensions.java
author igerasim
Tue, 02 Oct 2018 10:19:07 -0700
changeset 51986 c1db377f6300
parent 47216 71c04702a3d5
permissions -rw-r--r--
8200381: Typos in javadoc - missing verb "be" and alike Reviewed-by: lancea, darcy, wetmore
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
/*
32032
22badc53802f 8046321: OCSP Stapling for TLS
jnimeh
parents: 31538
diff changeset
     2
 * Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2281
diff changeset
     7
 * published by the Free Software Foundation.  Oracle designates this
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2281
diff changeset
     9
 * by Oracle in the LICENSE file that accompanied this code.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
 * accompanied this code).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
 *
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2281
diff changeset
    21
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2281
diff changeset
    22
 * or visit www.oracle.com if you need additional information or have any
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2281
diff changeset
    23
 * questions.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
package sun.security.x509;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
import java.io.*;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
import sun.security.util.*;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
 * Lists all the object identifiers of the X509 extensions of the PKIX profile.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
 * <p>Extensions are addiitonal attributes which can be inserted in a X509
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
 * v3 certificate. For example a "Driving License Certificate" could have
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
 * the driving license number as a extension.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
 * <p>Extensions are represented as a sequence of the extension identifier
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
 * (Object Identifier), a boolean flag stating whether the extension is to
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
 * be treated as being critical and the extension value itself (this is again
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
 * a DER encoding of the extension value).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
 * @see Extension
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
 * @author Amit Kapoor
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
 * @author Hemma Prafullchandra
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
public class PKIXExtensions {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
    // The object identifiers
31538
0981099a3e54 8130022: Use Java-style array declarations consistently
igerasim
parents: 25859
diff changeset
    52
    private static final int[] AuthorityKey_data = { 2, 5, 29, 35 };
0981099a3e54 8130022: Use Java-style array declarations consistently
igerasim
parents: 25859
diff changeset
    53
    private static final int[] SubjectKey_data = { 2, 5, 29, 14 };
0981099a3e54 8130022: Use Java-style array declarations consistently
igerasim
parents: 25859
diff changeset
    54
    private static final int[] KeyUsage_data = { 2, 5, 29, 15 };
0981099a3e54 8130022: Use Java-style array declarations consistently
igerasim
parents: 25859
diff changeset
    55
    private static final int[] PrivateKeyUsage_data = { 2, 5, 29, 16 };
0981099a3e54 8130022: Use Java-style array declarations consistently
igerasim
parents: 25859
diff changeset
    56
    private static final int[] CertificatePolicies_data = { 2, 5, 29, 32 };
0981099a3e54 8130022: Use Java-style array declarations consistently
igerasim
parents: 25859
diff changeset
    57
    private static final int[] PolicyMappings_data = { 2, 5, 29, 33 };
0981099a3e54 8130022: Use Java-style array declarations consistently
igerasim
parents: 25859
diff changeset
    58
    private static final int[] SubjectAlternativeName_data = { 2, 5, 29, 17 };
0981099a3e54 8130022: Use Java-style array declarations consistently
igerasim
parents: 25859
diff changeset
    59
    private static final int[] IssuerAlternativeName_data = { 2, 5, 29, 18 };
0981099a3e54 8130022: Use Java-style array declarations consistently
igerasim
parents: 25859
diff changeset
    60
    private static final int[] SubjectDirectoryAttributes_data = { 2, 5, 29, 9 };
0981099a3e54 8130022: Use Java-style array declarations consistently
igerasim
parents: 25859
diff changeset
    61
    private static final int[] BasicConstraints_data = { 2, 5, 29, 19 };
0981099a3e54 8130022: Use Java-style array declarations consistently
igerasim
parents: 25859
diff changeset
    62
    private static final int[] NameConstraints_data = { 2, 5, 29, 30 };
0981099a3e54 8130022: Use Java-style array declarations consistently
igerasim
parents: 25859
diff changeset
    63
    private static final int[] PolicyConstraints_data = { 2, 5, 29, 36 };
0981099a3e54 8130022: Use Java-style array declarations consistently
igerasim
parents: 25859
diff changeset
    64
    private static final int[] CRLDistributionPoints_data = { 2, 5, 29, 31 };
0981099a3e54 8130022: Use Java-style array declarations consistently
igerasim
parents: 25859
diff changeset
    65
    private static final int[] CRLNumber_data = { 2, 5, 29, 20 };
0981099a3e54 8130022: Use Java-style array declarations consistently
igerasim
parents: 25859
diff changeset
    66
    private static final int[] IssuingDistributionPoint_data = { 2, 5, 29, 28 };
0981099a3e54 8130022: Use Java-style array declarations consistently
igerasim
parents: 25859
diff changeset
    67
    private static final int[] DeltaCRLIndicator_data = { 2, 5, 29, 27 };
0981099a3e54 8130022: Use Java-style array declarations consistently
igerasim
parents: 25859
diff changeset
    68
    private static final int[] ReasonCode_data = { 2, 5, 29, 21 };
0981099a3e54 8130022: Use Java-style array declarations consistently
igerasim
parents: 25859
diff changeset
    69
    private static final int[] HoldInstructionCode_data = { 2, 5, 29, 23 };
0981099a3e54 8130022: Use Java-style array declarations consistently
igerasim
parents: 25859
diff changeset
    70
    private static final int[] InvalidityDate_data = { 2, 5, 29, 24 };
0981099a3e54 8130022: Use Java-style array declarations consistently
igerasim
parents: 25859
diff changeset
    71
    private static final int[] ExtendedKeyUsage_data = { 2, 5, 29, 37 };
0981099a3e54 8130022: Use Java-style array declarations consistently
igerasim
parents: 25859
diff changeset
    72
    private static final int[] InhibitAnyPolicy_data = { 2, 5, 29, 54 };
0981099a3e54 8130022: Use Java-style array declarations consistently
igerasim
parents: 25859
diff changeset
    73
    private static final int[] CertificateIssuer_data = { 2, 5, 29, 29 };
0981099a3e54 8130022: Use Java-style array declarations consistently
igerasim
parents: 25859
diff changeset
    74
    private static final int[] AuthInfoAccess_data = { 1, 3, 6, 1, 5, 5, 7, 1, 1};
0981099a3e54 8130022: Use Java-style array declarations consistently
igerasim
parents: 25859
diff changeset
    75
    private static final int[] SubjectInfoAccess_data = { 1, 3, 6, 1, 5, 5, 7, 1, 11};
0981099a3e54 8130022: Use Java-style array declarations consistently
igerasim
parents: 25859
diff changeset
    76
    private static final int[] FreshestCRL_data = { 2, 5, 29, 46 };
0981099a3e54 8130022: Use Java-style array declarations consistently
igerasim
parents: 25859
diff changeset
    77
    private static final int[] OCSPNoCheck_data = { 1, 3, 6, 1, 5, 5, 7,
2281
34fd38495efa 6798714: OCSPResponse class has to check the validity of signing certificate for OCSP response
xuelei
parents: 2
diff changeset
    78
                                                    48, 1, 5};
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
32032
22badc53802f 8046321: OCSP Stapling for TLS
jnimeh
parents: 31538
diff changeset
    80
    // Additional extensions under the PKIX arc that are not necessarily
22badc53802f 8046321: OCSP Stapling for TLS
jnimeh
parents: 31538
diff changeset
    81
    // used in X.509 Certificates or CRLs.
22badc53802f 8046321: OCSP Stapling for TLS
jnimeh
parents: 31538
diff changeset
    82
    private static final int OCSPNonce_data [] = { 1, 3, 6, 1, 5, 5, 7,
22badc53802f 8046321: OCSP Stapling for TLS
jnimeh
parents: 31538
diff changeset
    83
                                                  48, 1, 2};
22badc53802f 8046321: OCSP Stapling for TLS
jnimeh
parents: 31538
diff changeset
    84
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
     * Identifies the particular public key used to sign the certificate.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
    public static final ObjectIdentifier AuthorityKey_Id;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
     * Identifies the particular public key used in an application.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
    public static final ObjectIdentifier SubjectKey_Id;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
     * Defines the purpose of the key contained in the certificate.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
    public static final ObjectIdentifier KeyUsage_Id;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
     * Allows the certificate issuer to specify a different validity period
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
     * for the private key than the certificate.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
    public static final ObjectIdentifier PrivateKeyUsage_Id;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
     * Contains the sequence of policy information terms.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
    public static final ObjectIdentifier CertificatePolicies_Id;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
    /**
32032
22badc53802f 8046321: OCSP Stapling for TLS
jnimeh
parents: 31538
diff changeset
   112
     * Lists pairs of object identifiers of policies considered equivalent by
22badc53802f 8046321: OCSP Stapling for TLS
jnimeh
parents: 31538
diff changeset
   113
     * the issuing CA to the subject CA.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
    public static final ObjectIdentifier PolicyMappings_Id;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
    /**
32032
22badc53802f 8046321: OCSP Stapling for TLS
jnimeh
parents: 31538
diff changeset
   118
     * Allows additional identities to be bound to the subject of the
22badc53802f 8046321: OCSP Stapling for TLS
jnimeh
parents: 31538
diff changeset
   119
     * certificate.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
    public static final ObjectIdentifier SubjectAlternativeName_Id;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
    /**
32032
22badc53802f 8046321: OCSP Stapling for TLS
jnimeh
parents: 31538
diff changeset
   124
     * Allows additional identities to be associated with the certificate
22badc53802f 8046321: OCSP Stapling for TLS
jnimeh
parents: 31538
diff changeset
   125
     * issuer.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
    public static final ObjectIdentifier IssuerAlternativeName_Id;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
     * Identifies additional directory attributes.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
     * This extension is always non-critical.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
    public static final ObjectIdentifier SubjectDirectoryAttributes_Id;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
     * Identifies whether the subject of the certificate is a CA and how deep
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
     * a certification path may exist through that CA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
    public static final ObjectIdentifier BasicConstraints_Id;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
     * Provides for permitted and excluded subtrees that place restrictions
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143
     * on names that may be included within a certificate issued by a given CA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
    public static final ObjectIdentifier NameConstraints_Id;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
     * Used to either prohibit policy mapping or limit the set of policies
90ce3da70b43 Initial load
duke
parents:
diff changeset
   149
     * that can be in subsequent certificates.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   150
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   151
    public static final ObjectIdentifier PolicyConstraints_Id;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   152
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   154
     * Identifies how CRL information is obtained.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   155
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
    public static final ObjectIdentifier CRLDistributionPoints_Id;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   159
     * Conveys a monotonically increasing sequence number for each CRL
90ce3da70b43 Initial load
duke
parents:
diff changeset
   160
     * issued by a given CA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
    public static final ObjectIdentifier CRLNumber_Id;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   163
90ce3da70b43 Initial load
duke
parents:
diff changeset
   164
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
     * Identifies the CRL distribution point for a particular CRL.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   166
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   167
    public static final ObjectIdentifier IssuingDistributionPoint_Id;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   168
90ce3da70b43 Initial load
duke
parents:
diff changeset
   169
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   170
     * Identifies the delta CRL.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   171
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   172
    public static final ObjectIdentifier DeltaCRLIndicator_Id;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   173
90ce3da70b43 Initial load
duke
parents:
diff changeset
   174
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   175
     * Identifies the reason for the certificate revocation.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   176
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   177
    public static final ObjectIdentifier ReasonCode_Id;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   178
90ce3da70b43 Initial load
duke
parents:
diff changeset
   179
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   180
     * This extension provides a registered instruction identifier indicating
90ce3da70b43 Initial load
duke
parents:
diff changeset
   181
     * the action to be taken, after encountering a certificate that has been
90ce3da70b43 Initial load
duke
parents:
diff changeset
   182
     * placed on hold.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   183
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   184
    public static final ObjectIdentifier HoldInstructionCode_Id;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   185
90ce3da70b43 Initial load
duke
parents:
diff changeset
   186
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   187
     * Identifies the date on which it is known or suspected that the private
90ce3da70b43 Initial load
duke
parents:
diff changeset
   188
     * key was compromised or that the certificate otherwise became invalid.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   189
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   190
    public static final ObjectIdentifier InvalidityDate_Id;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   191
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   192
     * Identifies one or more purposes for which the certified public key
90ce3da70b43 Initial load
duke
parents:
diff changeset
   193
     * may be used, in addition to or in place of the basic purposes
90ce3da70b43 Initial load
duke
parents:
diff changeset
   194
     * indicated in the key usage extension field.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   195
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   196
    public static final ObjectIdentifier ExtendedKeyUsage_Id;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   197
90ce3da70b43 Initial load
duke
parents:
diff changeset
   198
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   199
     * Specifies whether any-policy policy OID is permitted
90ce3da70b43 Initial load
duke
parents:
diff changeset
   200
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   201
    public static final ObjectIdentifier InhibitAnyPolicy_Id;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   202
90ce3da70b43 Initial load
duke
parents:
diff changeset
   203
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   204
     * Identifies the certificate issuer associated with an entry in an
90ce3da70b43 Initial load
duke
parents:
diff changeset
   205
     * indirect CRL.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   206
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   207
    public static final ObjectIdentifier CertificateIssuer_Id;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   208
90ce3da70b43 Initial load
duke
parents:
diff changeset
   209
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   210
     * This extension indicates how to access CA information and services for
90ce3da70b43 Initial load
duke
parents:
diff changeset
   211
     * the issuer of the certificate in which the extension appears.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   212
     * This information may be used for on-line certification validation
90ce3da70b43 Initial load
duke
parents:
diff changeset
   213
     * services.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   214
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   215
    public static final ObjectIdentifier AuthInfoAccess_Id;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   216
90ce3da70b43 Initial load
duke
parents:
diff changeset
   217
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   218
     * This extension indicates how to access CA information and services for
90ce3da70b43 Initial load
duke
parents:
diff changeset
   219
     * the subject of the certificate in which the extension appears.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   220
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   221
    public static final ObjectIdentifier SubjectInfoAccess_Id;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   222
90ce3da70b43 Initial load
duke
parents:
diff changeset
   223
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   224
     * Identifies how delta CRL information is obtained.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   225
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   226
    public static final ObjectIdentifier FreshestCRL_Id;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   227
2281
34fd38495efa 6798714: OCSPResponse class has to check the validity of signing certificate for OCSP response
xuelei
parents: 2
diff changeset
   228
    /**
34fd38495efa 6798714: OCSPResponse class has to check the validity of signing certificate for OCSP response
xuelei
parents: 2
diff changeset
   229
     * Identifies the OCSP client can trust the responder for the
34fd38495efa 6798714: OCSPResponse class has to check the validity of signing certificate for OCSP response
xuelei
parents: 2
diff changeset
   230
     * lifetime of the responder's certificate.
34fd38495efa 6798714: OCSPResponse class has to check the validity of signing certificate for OCSP response
xuelei
parents: 2
diff changeset
   231
     */
34fd38495efa 6798714: OCSPResponse class has to check the validity of signing certificate for OCSP response
xuelei
parents: 2
diff changeset
   232
    public static final ObjectIdentifier OCSPNoCheck_Id;
34fd38495efa 6798714: OCSPResponse class has to check the validity of signing certificate for OCSP response
xuelei
parents: 2
diff changeset
   233
32032
22badc53802f 8046321: OCSP Stapling for TLS
jnimeh
parents: 31538
diff changeset
   234
    /**
22badc53802f 8046321: OCSP Stapling for TLS
jnimeh
parents: 31538
diff changeset
   235
     * This extension is used to provide nonce data for OCSP requests
22badc53802f 8046321: OCSP Stapling for TLS
jnimeh
parents: 31538
diff changeset
   236
     * or responses.
22badc53802f 8046321: OCSP Stapling for TLS
jnimeh
parents: 31538
diff changeset
   237
     */
22badc53802f 8046321: OCSP Stapling for TLS
jnimeh
parents: 31538
diff changeset
   238
    public static final ObjectIdentifier OCSPNonce_Id;
22badc53802f 8046321: OCSP Stapling for TLS
jnimeh
parents: 31538
diff changeset
   239
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   240
    static {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   241
        AuthorityKey_Id = ObjectIdentifier.newInternal(AuthorityKey_data);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   242
        SubjectKey_Id   = ObjectIdentifier.newInternal(SubjectKey_data);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   243
        KeyUsage_Id     = ObjectIdentifier.newInternal(KeyUsage_data);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   244
        PrivateKeyUsage_Id = ObjectIdentifier.newInternal(PrivateKeyUsage_data);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   245
        CertificatePolicies_Id =
90ce3da70b43 Initial load
duke
parents:
diff changeset
   246
            ObjectIdentifier.newInternal(CertificatePolicies_data);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   247
        PolicyMappings_Id = ObjectIdentifier.newInternal(PolicyMappings_data);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   248
        SubjectAlternativeName_Id =
90ce3da70b43 Initial load
duke
parents:
diff changeset
   249
            ObjectIdentifier.newInternal(SubjectAlternativeName_data);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   250
        IssuerAlternativeName_Id =
90ce3da70b43 Initial load
duke
parents:
diff changeset
   251
            ObjectIdentifier.newInternal(IssuerAlternativeName_data);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   252
        ExtendedKeyUsage_Id = ObjectIdentifier.newInternal(ExtendedKeyUsage_data);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   253
        InhibitAnyPolicy_Id = ObjectIdentifier.newInternal(InhibitAnyPolicy_data);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   254
        SubjectDirectoryAttributes_Id =
90ce3da70b43 Initial load
duke
parents:
diff changeset
   255
            ObjectIdentifier.newInternal(SubjectDirectoryAttributes_data);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   256
        BasicConstraints_Id =
90ce3da70b43 Initial load
duke
parents:
diff changeset
   257
            ObjectIdentifier.newInternal(BasicConstraints_data);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   258
        ReasonCode_Id = ObjectIdentifier.newInternal(ReasonCode_data);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   259
        HoldInstructionCode_Id  =
90ce3da70b43 Initial load
duke
parents:
diff changeset
   260
            ObjectIdentifier.newInternal(HoldInstructionCode_data);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   261
        InvalidityDate_Id = ObjectIdentifier.newInternal(InvalidityDate_data);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   262
90ce3da70b43 Initial load
duke
parents:
diff changeset
   263
        NameConstraints_Id = ObjectIdentifier.newInternal(NameConstraints_data);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   264
        PolicyConstraints_Id =
90ce3da70b43 Initial load
duke
parents:
diff changeset
   265
            ObjectIdentifier.newInternal(PolicyConstraints_data);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   266
        CRLDistributionPoints_Id =
90ce3da70b43 Initial load
duke
parents:
diff changeset
   267
            ObjectIdentifier.newInternal(CRLDistributionPoints_data);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   268
        CRLNumber_Id =
90ce3da70b43 Initial load
duke
parents:
diff changeset
   269
            ObjectIdentifier.newInternal(CRLNumber_data);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   270
        IssuingDistributionPoint_Id =
90ce3da70b43 Initial load
duke
parents:
diff changeset
   271
            ObjectIdentifier.newInternal(IssuingDistributionPoint_data);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   272
        DeltaCRLIndicator_Id =
90ce3da70b43 Initial load
duke
parents:
diff changeset
   273
            ObjectIdentifier.newInternal(DeltaCRLIndicator_data);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   274
        CertificateIssuer_Id =
90ce3da70b43 Initial load
duke
parents:
diff changeset
   275
            ObjectIdentifier.newInternal(CertificateIssuer_data);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   276
        AuthInfoAccess_Id =
90ce3da70b43 Initial load
duke
parents:
diff changeset
   277
            ObjectIdentifier.newInternal(AuthInfoAccess_data);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   278
        SubjectInfoAccess_Id =
90ce3da70b43 Initial load
duke
parents:
diff changeset
   279
            ObjectIdentifier.newInternal(SubjectInfoAccess_data);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   280
        FreshestCRL_Id = ObjectIdentifier.newInternal(FreshestCRL_data);
2281
34fd38495efa 6798714: OCSPResponse class has to check the validity of signing certificate for OCSP response
xuelei
parents: 2
diff changeset
   281
        OCSPNoCheck_Id = ObjectIdentifier.newInternal(OCSPNoCheck_data);
32032
22badc53802f 8046321: OCSP Stapling for TLS
jnimeh
parents: 31538
diff changeset
   282
        OCSPNonce_Id = ObjectIdentifier.newInternal(OCSPNonce_data);
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   283
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   284
}