I would like to use non-default location for ticket cache. Is it possible to set this value? I checked Krb5LoginModule and it allows for such configuration, but I could not find anything related to Sasl clients.
Any help with this regard will be highly appreciated.
You cannot do that with the SASL client because SASL is delegating the work to JGSS. What you can you is to obtain a login context with your custom location and perform a
Subject.doAswith the subject from the login context with the SASL client. This will give you what you want. (Sample code available)