You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by anshuk pal chaudhuri <an...@yahoo.com> on 2005/03/14 07:13:26 UTC

Binary Token

My objective is to 1. genearate a binary security
token using wss4j apis from a certicate and then again
2. to retrieve back the certicate and its details back
from the Binary64 encoded value.

My first part is done.What should be the code of the
2nd part?

I have this code of generating a certifcate.

CertificateFactory certificatefactory =
CertificateFactory.getInstance("X.509");
//Open the file.
FileInputStream fileinputstream = new
FileInputStream("C:/ABC.cer");
// Generate a certificate from the data in the file.
X509Certificate x509certificate =
(X509Certificate)certificatefactory.generateCertificate(fileinputstream);


Now the code for generating the Encoded Binary64 value
using wss4j..

WSSConfig wsconfig = WSSConfig.getDefaultWSConfig();
X509Security x509 =new X509Security(wsconfig,doc);
x509.setX509Certificate(x509certificate);

The request contains the binary token value in the
header.
How do I retrieve back the certificate details from
the generated Encoded Binary64 value using wss4j api?
Please send me the code using that.....


		
__________________________________ 
Do you Yahoo!? 
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/