I am wondering if there is a way to authenticate with already existing token instead of getting the token again...
.credentials(username, credential) <-- this is what I am trying to avoid but instead doing something like
.token(token) <- but this method doesn't exist for the ContextBuilder class
Can you use ContextBuilder.credentialsSupplier
with a custom Supplier
, similar to the following:
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.