Class MutableCredentials

java.lang.Object
com.google.auth.Credentials
com.google.cloud.spanner.MutableCredentials
All Implemented Interfaces:
Serializable

public class MutableCredentials extends Credentials
A mutable Credentials implementation that delegates authentication behavior to a scoped ServiceAccountCredentials instance.

This class is intended for scenarios where an application needs to replace the underlying service account credentials for a long-running Spanner Client.

All operations inherited from Credentials are forwarded to the current delegate, including request metadata retrieval and token refresh. Calling updateCredentials(ServiceAccountCredentials) replaces the delegate with a newly scoped credentials instance created from the same scopes that were provided when this object was constructed.

See Also: