MathGroup Archive 2004

[Date Index] [Thread Index] [Author Index]

Search the Archive

jlink function argument


Hi there,

I would like to implement a java function in Mathematica via JLink, but I
am having trouble getting the correct format for the java function to be
called from within Mathematica.

In particular I would like to have the following java function call:

	factory.createCredential(new X509Certificate[] {userCert},
                                        userKey,
                                        props.getProxyStrength(),
                                        props.getProxyLifeTime() * 3600,
                                        proxyType,
                                        (X509ExtensionSet)null);

within Mathematica. I am not sure how to write the first argument 
	
	"new X509Certificate[] {userCert}"

in Mathematica. Right now I have:

	factory@createCredential[List[userCert], userKey, 512, 1200, proxyType,
	Null];

but it does not seem to work.

Any idea on how I would go about doing this?

Thanks in advance.
Kashif


  • Prev by Date: Fwd: usage logs from mathlm
  • Next by Date: Fwd: using functions with package name prefixed.
  • Previous by thread: RE: Padding arrays with reversed elements
  • Next by thread: AW: Simple list operation