I'm trying to authenticate with an ArcGIS Enterprise Portal using ArcGIS Tokens (not OAuth). It looks like the most recent version of the SDK added some capabilities in this area, such as the new method UserCredential.createFromToken(). But it is still unclear how to use this within the context of an AuthenticationManager.
What is the recommended process for obtaining tokens for an ArcGIS Enterprise portal? I know the URL of the Portal that I am connecting to, and the URL at which tokens are generated, but I don't see any intuitive way to pass a request to the token generation service.
This is a follow-up to an older question asking the same thing for the Java SDK version 100.0.0. In the previous version, I determined through a help ticket that this capability had not yet been implemented. It looks like the capability might be implemented now, but I haven't found anything in the documentation to explain how to get the token. In the .NET SDK they have AuthenticationManager.Current.GenerateCredentialAsync; I don't see anything similar in the Java SDK. I'd really appreciate any guidance in figuring this out.