on 08-08-2011 4:18 PM
Hi all,
How I get the array of Bytes in the keyStore using JavaMapping for PI 7.1??
I need to pass this value to a TAG in my java mapping.
Regards,
I need to pass the keyStore content into the tag. See the example below:
<ns0:certificate
xsi:Type = "xsd:base64Binary">MIICbzCCAVegAwIBAgICAPQwDiuIUHhiuhYtexmnB
Kiuyi76rytghfcHGHGVhgvuyjkhbjkhkjhiu7jVJgh8iuiuJ
ljk98y98jhbOIUUtyf76gfclçojopIjoIJOIutfyrtfYTFYTFU
UHYGRDWcvgbnjiu5gplmibvhhcvdwqx5gBft69oijYf
</ns0:certiicate>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You might want to use base64 encoding if you want to encode the data and similarly other end has to decode the data using java. Or if you dont need encoding read the keystore data in byte array and convert it into string before assignt to tag element.
For encoding the link might be helpful
http://java.codefetch.com/example/qg/src/com/oreilly/servlet/Base64Encoder.java?qy=string
Your exact requirement is not clear. But the below link will help for declaring or creating bytes of array data to store or retrieve keystore.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.