web service standalone client
I trying to design a standalone client for a web service which uses X509 Certificate based Authentication.
but while attaching the certificate to the stub by using following code
SecurityProtocol securityProtocol = (SecurityProtocol) stub._getGlobalProtocols().getProtocol("SecurityProtocol");
AuthenticationContext context = securityProtocol.getAuthenticationContext();
for the last line the documentation says it should have following syntax
addClientCertificate(X509Certificate certificates, PrivateKey privateKey);
I have genrated a client certificate. but what about last parameter.
OR else iwant to know weather there is any tutoral for designing Webservice client with Certificate based Authentication