[
https://issues.apache.org/jira/browse/WSS-209?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12766872#action_12766872
]
Matthias Germann commented on WSS-209:
--------------------------------------
Hi Colm
I have written a Subclass of AbstractCrypto for a PKCS#11Keystore (Smartcard)
which is loaded in a different way than a JKS or PKCS#12 Keystore (File-based).
I can bypass the Keystore initialization in the constructor of AbstractCrypto
by passing a null-value for the Properties object.
As it is legal to pass a null-value for the Properties Object,
getCryptoProvider() should do a null-check as getDefaultX509Alias() does.
Regards,
Matthias
> NPE in AbstractCrypto.getCryptoProvider()
> ------------------------------------------
>
> Key: WSS-209
> URL: https://issues.apache.org/jira/browse/WSS-209
> Project: WSS4J
> Issue Type: Bug
> Components: WSS4J Core
> Affects Versions: 1.5.8
> Reporter: Matthias Germann
> Assignee: Ruchith Udayanga Fernando
> Attachments: AbstractCrypto.java.patch
>
>
> AbstractCrypto.getCryptoProvider() throws a NullPointerException when the
> constructor AbstractCrypto(Properties p) was called with null.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]