Hi everybody,
I have an issue with a wrapper.
I found a java library (jotp) and have 1 jar from it.
I create a small xml file to manage it (no fucntion, just a test for the moment):
But when I use a line like that on my B4a application :
I receive an error :
After checke in the jotp.jar file, I found that :
On the same JAR there is a "type.TOTP" class that I could use but there are less functions than in the "OTP" class and my test are always bad with the "type.TOTP" so I would like to know if it's possible to have the "OTP" class working without this error ?
JAR file is attached
Regards and have a nice day
I have an issue with a wrapper.
I found a java library (jotp) and have 1 jar from it.
I create a small xml file to manage it (no fucntion, just a test for the moment):
XML wrapper:
<?xml version="1.0" encoding="UTF-8"?>
<root>
<doclet-version-NOT-library-version>1.00</doclet-version-NOT-library-version>
<class>
<name>com.amdelamar.jotp.OTP</name>
<shortname>OTP</shortname>
<comment>OTP</comment>
</class>
<version>1.0</version>
</root>
But when I use a line like that on my B4a application :
Declaration OTP:
Dim myotp As OTP
I receive an error :
OTP() has private access in OTP
After checke in the jotp.jar file, I found that :
Jar file:
public final class OTP {
public static final int BYTES = 20; // 160 bit
private OTP() {
// prevent instantiation
}
[...]
}
On the same JAR there is a "type.TOTP" class that I could use but there are less functions than in the "OTP" class and my test are always bad with the "type.TOTP" so I would like to know if it's possible to have the "OTP" class working without this error ?
JAR file is attached
Regards and have a nice day