Re: PKCS7 support in JDK

schemers@Eng
Mon, 21 Sep 1998 14:28:01 -0700 (PDT)

The sun.security.* classes are not for use outside of the JDK. They
are subject to change and not supported. Even if the PKCS7 class
was more modular, you would still be strongly advised against using
it as it is considered to a private API. There will most likely
be some public versions of these APIs available at some point.

roland

Sangeeta Varma writes:
> Hi,
>
> The sun.security pacakge in the JDK contains an implementation of the PKCS7, but
> supports only SignedData type. Is there any plan to add EnvelopedData and
> EncryptedData types support ?
>
> I would like to extend the PKCS7 class to add this functionality myself. But it is not
> straight-forward to extend this class. All the parsing of the signed data is implemented
> as private to the class. To be able to provide a new class which can parse signed/
> enveloped/encrypted data I will need to duplicate code from the PKCS7 class.
>
> Why was this class designed like this ??
>
> Thanks,
> Sangeeta
>
>