Sun Java System Access Manager 7.1 C API Reference

Returns

This function returns the principal (user) of the specified session, or NULL if the handle is invalid or any other error occurred.