Closed RafaRioFal4699 closed 2 years ago
As you probably noticed in the stack trace, xades4j internally uses Guice for dependency injection. Guice relies on reflection and other stuff that doesn't seem to work well on Android. I've had the goal to remove the DI container altogether, but that's a big task, probably with breaking changes, so I never did it.
In any case, xades4j was not developed nor tested with Android in mind.
Also see the info on: https://github.com/luisgoncalves/xades4j/issues/154
Okey, thanks for your answer. One last question, do you know or have you heard about another API with the same function but made for Android?
I don't know :/
There's a library endorsed by the EC: https://ec.europa.eu/digital-building-blocks/DSS/webapp-demo/doc/dss-documentation.html. It supports more than xades4j. Never tested it, though.
Thanks, I will take a look
I'm trying to make a signature method in order to accomplish some governmental requirements in my app. I followed the steps mentioned in this issue https://github.com/luisgoncalves/xades4j/issues/134 but at the moment of sign my XML, i found this exception:
After a while, I found Android's implementation of
Class
Java class haven't got this specific methodgetAnnotatedSuperClass()
and also it differs so much from Java's classic classClass
: Source: java.lang.Class reference from Android Developers (https://developer.android.com/reference/java/lang/Class)So here it goes my question: Is this intended? Or haven't this API been desinged for Android? In any case, I will thank you If you could provide me some help.
Thank you in advance
Addition: I don't know if it's important, but I'm using the EPES Signer Profile