Relates :
|
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.
|