简体   繁体   中英

OpenStack JClouds How to build ContextBuilder or something else with an existing token

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:

Using AWS (S3) via jclouds - how to assume role

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM