GSS-API Programming Guide

Wrap Size Limits and QOP Values

Sun's implementation of the GSS-API (as opposed to any underlying mechanism) does not impose a maximum size on the size of messages to be processed by gss_wrap(). Applications can determine the maximum message size with gss_wrap_size_limit().

Sun's implementation of the GSS-API detects invalid QOP values when gss_wrap_size_limit() is called.