jdk/src/share/classes/sun/security/pkcs/PKCS9Attribute.java
changeset 10336 0bb1999251f8
parent 6122 16fa7ed7ff1b
child 16848 630dd3143428
equal deleted inserted replaced
10335:3c7eda3ab2f5 10336:0bb1999251f8
     1 /*
     1 /*
     2  * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     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
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
   318         {new Byte(DerValue.tag_Sequence)},    // SMIMECapability
   318         {new Byte(DerValue.tag_Sequence)},    // SMIMECapability
   319         {new Byte(DerValue.tag_Sequence)},    // SigningCertificate
   319         {new Byte(DerValue.tag_Sequence)},    // SigningCertificate
   320         {new Byte(DerValue.tag_Sequence)}     // SignatureTimestampToken
   320         {new Byte(DerValue.tag_Sequence)}     // SignatureTimestampToken
   321     };
   321     };
   322 
   322 
   323     private static final Class[] VALUE_CLASSES = new Class[18];
   323     private static final Class<?>[] VALUE_CLASSES = new Class<?>[18];
   324 
   324 
   325     static {
   325     static {
   326         try {
   326         try {
   327             Class str = Class.forName("[Ljava.lang.String;");
   327             Class<?> str = Class.forName("[Ljava.lang.String;");
   328 
   328 
   329             VALUE_CLASSES[0] = null;  // not used
   329             VALUE_CLASSES[0] = null;  // not used
   330             VALUE_CLASSES[1] = str;   // EMailAddress
   330             VALUE_CLASSES[1] = str;   // EMailAddress
   331             VALUE_CLASSES[2] = str;   // UnstructuredName
   331             VALUE_CLASSES[2] = str;   // UnstructuredName
   332             VALUE_CLASSES[3] =        // ContentType
   332             VALUE_CLASSES[3] =        // ContentType