File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Exporting GSSCredential to byte array and vice versa

varun srivastv
Posts: 16
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I am implementing S4U protocol using GSS in java. Since java 7 does not support this protocol, I plan to write a JNI wrapper over the gss api methods in C that do not have equivalent in java.

As part of this I am writing a JNI over gss_acquire_cred_impersonate_name as described in .

This method takes an previously populated input credential handle (gss_cred_id_t) and populates an output credential handle. In my java code I have a GSSCredential created which I need to pass to C function in form of gss_cred_id_t and convert the output credential handle from gss_cred_id_t back to GSSCredential for further use.

How can I export GSSCredential object to byte array and vice versa in order to communicate with the C function ?

I agree. Here's the link:
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic