Hello all,

i am trying to integrate GSI to an existing network application, that is implemented using SocketChannels from java.nio packages. [1]

I've tried to follow the example from [2] and the authentication mechanism, seems to work as it should. I've used the code from [2] and then obtained the SocketChannel from the created socket to exchange data.

My question is how can i exploit the other features of GSI, like encryption or integrity protection. If i just add the requestConf(true) or requestInteg(true), i can communicate with the other side, but the data sent, is just plain text (checked with tshark sniffer). Looking further to the GSI API, it seems that in order to exploit these features one has to use the wrap/unwrap methods. So i have to implement some segmentation according to the getWrapSizeLimit in order to wrap/unwrap data to/from the network. Is this correct ?

Is there any other way to exploit these features, just by using SocketChannel.read/write methods or Input/Output streams ?

Finally, could someone explain to me the difference between thw two GSSConstants.GSS_MODE ? ( GSIConstants.MODE_GSI vs GSIConstants.MODE_SSL)

Thank you in advance,

[1]http://java.sun.com/j2se/1.4.2/docs/api/java/nio/channels/SocketChannel.html
[2]http://viewcvs.globus.org/viewcvs.cgi/jglobus/src/org/globus/gsi/gssapi/net/example/GssServer.java?root=Java+COG&view=markup

--
Antonis Zissimos, Phd Candidate

National Technical University of Athens (NTUA)
School of Electrical and Computer Engineering
Computing Systems Laboratory

e-mail: [EMAIL PROTECTED]
web: http://www.cslab.ece.ntua.gr/~azisi
Tel: +30-2-10-772-2133 internal 420
Tel: +30-2-10-772-1544 internal 420

Reply via email to