Transferring SPENGO token via a web service call or a servlet
Hi,
In the examples I have seen, a SPENGO token is transferred from client to server via sockets. Once the token is obtained,
GSS-APi calls like the following can be called to extract the userId
from the SPENGO token. In the code below,
innerContextToken would be obtained after some socket based conversation.
GSSManager manager = GSSManager.getInstance();
GSSName serverName = manager.createName(serverPrincipalName, null);
GSSContext context = manager.createContext(serverName, krb5MechanismOid, null, GSSContext.DEFAULT_LIFETIME);
byte[] neg_token_targ = context.acceptSecContext(innerContextToken, 0, innerContextToken.length);
userPrincipalName = context.getSrcName();
Can innerContextToken be passed from client to server via a web service call ? Or could someone point me to a sample on how the
socket based communication for token transfer could be replaced with a HTTP via a servlet or if its possible to do so with a web service call ?
Thanks
Raman

