This repository was archived by the owner on Apr 7, 2026. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +5
-8
lines changed
main/java/com/google/cloud/spanner
test/java/com/google/cloud/spanner Expand file tree Collapse file tree 3 files changed +5
-8
lines changed Original file line number Diff line number Diff line change 1919import com .google .auth .Credentials ;
2020import com .google .auth .RequestMetadataCallback ;
2121import com .google .auth .oauth2 .ServiceAccountCredentials ;
22-
2322import java .io .IOException ;
2423import java .net .URI ;
2524import java .util .List ;
@@ -45,7 +44,9 @@ public class MutableCredentials extends Credentials {
4544 private volatile ServiceAccountCredentials delegate ;
4645 private final Set <String > scopes ;
4746
48- /** Creates a MutableCredentials instance with default spanner scopes {@link SpannerOptions.SCOPES} */
47+ /**
48+ * Creates a MutableCredentials instance with default spanner scopes {@link SpannerOptions.SCOPES}
49+ */
4950 public MutableCredentials (ServiceAccountCredentials credentials ) {
5051 this (credentials , SpannerOptions .SCOPES );
5152 }
Original file line number Diff line number Diff line change 2929import com .google .auth .CredentialTypeForMetrics ;
3030import com .google .auth .RequestMetadataCallback ;
3131import com .google .auth .oauth2 .ServiceAccountCredentials ;
32-
3332import java .io .IOException ;
3433import java .net .URI ;
35-
3634import java .util .Arrays ;
3735import java .util .Collections ;
3836import java .util .HashSet ;
Original file line number Diff line number Diff line change 1616
1717package com .google .cloud .spanner .connection .it ;
1818
19-
2019import static org .junit .Assert .assertTrue ;
2120import static org .junit .Assert .fail ;
2221import static org .junit .Assume .assumeTrue ;
2322
2423import com .google .auth .oauth2 .GoogleCredentials ;
2524import com .google .auth .oauth2 .ServiceAccountCredentials ;
26-
25+ import com . google . cloud . spanner . MutableCredentials ;
2726import com .google .cloud .spanner .SerialIntegrationTest ;
2827import com .google .cloud .spanner .Spanner ;
2928import com .google .cloud .spanner .SpannerOptions ;
3029import com .google .cloud .spanner .admin .instance .v1 .InstanceAdminClient ;
31- import com .google .cloud .spanner .MutableCredentials ;
3230import com .google .spanner .admin .instance .v1 .ProjectName ;
3331import java .io .IOException ;
3432import java .io .InputStream ;
@@ -86,7 +84,7 @@ public void testMutableCredentialsUpdateAuthorizationForRunningClient() throws I
8684
8785 ProjectName projectName = ProjectName .of (options .getProjectId ());
8886 try (Spanner spanner = options .getService ();
89- InstanceAdminClient instanceAdminClient = spanner .createInstanceAdminClient ()) {
87+ InstanceAdminClient instanceAdminClient = spanner .createInstanceAdminClient ()) {
9088 instanceAdminClient .listInstances (projectName );
9189
9290 // update mutableCredentials now to use an invalid credentials
You can’t perform that action at this time.
0 commit comments