United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-8011867 Accept unknown PKCS #9 attributes
JDK-8011867 : Accept unknown PKCS #9 attributes

Details
Type:
Bug
Submit Date:
2013-04-10
Status:
Closed
Updated Date:
2013-06-14
Project Name:
JDK
Resolved Date:
2013-04-11
Component:
security-libs
OS:
Sub-Component:
java.security
CPU:
Priority:
P3
Resolution:
Fixed
Affected Versions:
6,7,8
Fixed Versions:

Related Reports
Backport:
Relates:

Sub Tasks

Description
We hardcoded a list of known PKCS #9 attributes inside JDK so that getValue() method can always return the correct type for one (say, String for string, ObjectIdentifier for OID). However, this means when an unknown attribute is met, an exception is thrown. It's not easy to list all attributes inside there and sometimes it's not necessary to get the actual type of an attribute unless we really need to deal with it inside the JDK.
                                    

Comments
URL:   http://hg.openjdk.java.net/jdk8/jdk8/jdk/rev/0ab22e58d151
User:  lana
Date:  2013-04-23 16:55:28 +0000

                                     
2013-04-23
provided test:test/sun/security/pkcs/pkcs9/UnknownAttribute.java have passed from b86 - b95 at all platform at 1.8
                                     
2013-06-14
This was discovered when trying to solve JDK-8009636. A TSA server sends back a PKCS #9 structure with two unknown attributes.
                                     
2013-04-10
URL:   http://hg.openjdk.java.net/jdk8/tl/jdk/rev/0ab22e58d151
User:  weijun
Date:  2013-04-11 03:10:47 +0000

                                     
2013-04-11



Hardware and Software, Engineered to Work Together