@Singleton public class GetTokenFromCredentials extends Object implements com.google.common.base.Function<Credentials,String>
Note that in order to request an authentication token once it expires, the username and password must be provided. This means that when the context is created using an already existing token (and thus no username and password are provided), jclouds will not be able to request a new token once it expires.
If the context is created with an already existing token, it is up to the user to renew it when it expires.
Constructor and Description |
---|
GetTokenFromCredentials() |
public String apply(Credentials input)
apply
in interface com.google.common.base.Function<Credentials,String>
Copyright © 2009-2018 The Apache Software Foundation. All Rights Reserved.