The problem I am trying to solve is that when connecting with
There are several approaches to this:
LoginContextto obtain a
Subjectwith your TGT, hold that TGT in memory for as long as it is valid and wrap it with a acquire/release implementation. As soon as you have your
new InitialDirContext()call in a
ContextSourcedoes not support SASL
GSSAPImechanism. Luckily, you can use my library for that.
Either way, I using both approaches. The first approach works in a custom authenticator/realm and is blazingly fast here. I wonder why your implemention is so slow -- whatever slow means to you.