iTextG still using Bouncy Castle ("BC") instead of Spongy Castle ("SC") for certain operations
Jaime Hablutzel Egoavil <[email protected]> Tue, 17 Nov 2015 17:13:07 -0500
| Newsgroups | gmane.comp.java.lib.itext.general |
|---|---|
| Message-ID | <CAFxNpv-wiKV3KVo5CXMYLSXdTApo1pJ7gnF_SdczCum6hP=0Aw@mail.gmail.com> |
--===============3258861803615094088==
Content-Type: multipart/alternative; boundary=001a114c7958c01e7f0524c3d566
--001a114c7958c01e7f0524c3d566
Content-Type: text/plain; charset=UTF-8
>From the iTextG 5.5.7 source code around
com.itextpdf.text.pdf.security.CertificateVerification:197:
public static boolean verifyOcspCertificates(BasicOCSPResp ocsp, KeyStore
keystore, String provider) {
if (provider == null)
provider = *"BC"*;
try {
for (Enumeration<String> aliases = keystore.aliases();
aliases.hasMoreElements();) {
It is using the "BC" string where it should use "SC", quoting from
https://rtyley.github.io/spongycastle/:
the Java Security API Provider name is now SC rather than BC
Note that the previous one is only one example where the "BC" provider name
is still used, other ocurrences can be found by searching in the iTextG
source code.
Regards.
--
Jaime Hablutzel - RPC 994690880
--001a114c7958c01e7f0524c3d566
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr"><div>From the iTextG 5.5.7 source code around <font face=
=3D"monospace, monospace">com.itextpdf.text.pdf.security.CertificateVerific=
ation:197</font>:<br></div><div><br></div><div><div><font face=3D"monospace=
, monospace">public static boolean verifyOcspCertificates(BasicOCSPResp ocs=
p, KeyStore keystore, String provider) {</font></div><div><font face=3D"mon=
ospace, monospace"><span class=3D"" style=3D"white-space:pre"> </span> =C2=
=A0 =C2=A0if (provider =3D=3D null)</font></div><div><font face=3D"monospac=
e, monospace"><span class=3D"" style=3D"white-space:pre"> </span> =C2=A0 =
=C2=A0 =C2=A0 =C2=A0provider =3D <b>"BC"</b>;</font></div><div><f=
ont face=3D"monospace, monospace"><span class=3D"" style=3D"white-space:pre=
"> </span> =C2=A0 =C2=A0try {</font></div><div><font face=3D"monospace, mon=
ospace"><span class=3D"" style=3D"white-space:pre"> </span> =C2=A0 =C2=A0 =
=C2=A0 =C2=A0for (Enumeration<String> aliases =3D keystore.aliases();=
aliases.hasMoreElements();) {</font></div><div><br></div><div>It is using =
the <font face=3D"monospace, monospace">"BC"</font>=C2=A0string w=
here it should use <font face=3D"monospace, monospace">"SC"</font=
>, quoting from=C2=A0<a href=3D"https://rtyley.github.io/spongycastle/">htt=
ps://rtyley.github.io/spongycastle/</a>:</div><div><br></div><blockquote cl=
ass=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left-width:1px=
;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1e=
x">the Java Security API Provider name is now SC rather than BC</blockquote=
><div><br></div><div>Note that the previous one is only one example where t=
he <font face=3D"monospace, monospace">"BC"</font> provider name =
is still used, other ocurrences can be found by searching in the iTextG sou=
rce code.</div><div><div><br></div><div>Regards.</div><div><br></div>-- <br=
><div class=3D"gmail_signature"><div dir=3D"ltr"><div><div dir=3D"ltr">Jaim=
e Hablutzel - <font color=3D"#259bda" face=3D"Verdana, Geneva, Arial, sans-=
serif">=C2=A0RPC 994690880</font><br></div></div></div></div>
</div></div></div>
--001a114c7958c01e7f0524c3d566--
--===============3258861803615094088==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
------------------------------------------------------------------------------
Give your users amazing mobile app experiences with Intel XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2-D/3-D games for multiple OSs.
Then get your creation into app stores sooner, with many ways to monetize.
http://pubads.g.doubleclick.net/gampad/clk?id=254741551&iu=/4140
--===============3258861803615094088==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
--===============3258861803615094088==--