-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
On 17/01/14 18:41 , sasc wrote:
> Hi again,
>
>> Yes, the *theory* is that by replacing the provider (or adding
>> it) code
>>
>> that is using "TerminalFactory.getDefault()" (or getInstance
>> "PC/SC") would give me a working JER. That's the point and spirit
>> of javax.smartcardio, at least. But it does not work.
>
> Can you easily see if it coredumps due to the openjdk impl still
> being loaded, or if its jnasmartcardio that crashes?
It is still OpenJDK that coredumps but what I meant by "this does not
work" is that I can't replace the sunpcsc provider by replacing the
provider in java.security (your code is bypassing the provider inetrface)
>
>> As javax.smartcardio is the only abstraction that would allow to
>> write portable code. See
>>
http://stackoverflow.com/a/15110077/44289
>
> I would like to see scio on android, but i dont think we'll get
> that in standard android anytime soon. I have an experimental scio
> impl with ccid driver working on android, but it currently only
> works in a local process. I would like to expose it as an IPC
> service, but i have to figure out how to handle releasing remote
> resources ("distributed gc") first. I can see that seek4android is
> doing it, so I'll investigate that if i get the time.
Well, I would like to use other code I have that makes use of
javax.smartcardio to talk to cards over NFC.
Having CCID on Android is also interesting, but I don't have any
hardware that would "look sensible" with something with USB attached
for such purposes.
>
>> My only solution would be getting rid of all the reflection thing
>> and excess code,
>
> The reflection part can probably be removed now. It was implemented
> back in 2008.. And the classes using scio can be removed with a
> maven plugin. (Until we get scio on android).
I don't speak maven :)
But I can test it on OSX once that "normal" javax.smartcardio
reference can be used.
- --
Martin
+372 515 6495
-----BEGIN PGP SIGNATURE-----
iQEcBAEBCAAGBQJS2X+fAAoJEKzwIt3aPjKjyxAIAJSd5lTqQl80TYJEJnFY5OC3
psRTEuxCkmYaHixpq8iwE6qZP8YRR/3Vxh5YjsEqt+SXy1mBF5Wyo4Saz627klkZ
tMSlFYOQibgZQ0Y4FZPDqSnAGePSgLd5oq3bdPCut2z64UqR/BH5bIyw9NxeG12t
CKu2LycRJeQOkZTV7AblDTZXogN3qMincCUJzgpv5aYqMIKmGqq8gH71fWo8ipqo
QKV3yG0W2yD9SAZHqEFDSQhOlm4mxbXu/ES7wkSGl839OHwJk6XlxuT/Ti38Rro4
p88/2xnq+ydseHiPjjn/0I/hZyyb7KZMFr+3Pvezgpq3LRYmP4tnqgCiLGvndfw=
=0cqr
-----END PGP SIGNATURE-----