How to use java class object in ASP.NET?

C

cartooncat

I have to translate an ASP project to ASP.NET, in the former project, a java
class object was used by VBScript:
Set Obj = Server.CreateObject("ccb.pub.RSAsig")
Obj.generateKeys()
Obj.getPrivateKey()
Obj.getPublicKey()

the object "ccb.pub.RSAsig" is a java class object registered by
javareg.exe, and
generateKeys(), getPrivateKey(), getPublicKey() is its methods.
In the ASP.NET, I create the object(C# language):
object Obj;
Obj = Server.CreateObject("ccb.pub.RSAsig");
Obj.generateKeys();
Obj.getPrivateKey();
Obj.getPublicKey();

then compile error: object Obj not include the method generateKeys(),
getPrivateKey() and getPublicKey().

I'm so confused, waiting for help......
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top