Skip to content

Commit 3b81a59

Browse files
committed
fix formatting
1 parent 9b40c41 commit 3b81a59

File tree

1 file changed

+30
-6
lines changed

1 file changed

+30
-6
lines changed

oauth2_http/java/com/google/auth/oauth2/ServiceAccountJwtAccessCredentials.java

Lines changed: 30 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,15 @@ public class ServiceAccountJwtAccessCredentials extends Credentials
104104
* @param privateKeyId Private key identifier for the service account. May be null.
105105
*/
106106
private ServiceAccountJwtAccessCredentials(
107-
String clientId, String clientEmail, PrivateKey privateKey, String privateKeyId) {
108-
this(clientId, clientEmail, privateKey, privateKeyId, null, null,Credentials.GOOGLE_DEFAULT_UNIVERSE);
107+
String clientId, String clientEmail, PrivateKey privateKey, String privateKeyId) {
108+
this(
109+
clientId,
110+
clientEmail,
111+
privateKey,
112+
privateKeyId,
113+
null,
114+
null,
115+
Credentials.GOOGLE_DEFAULT_UNIVERSE);
109116
}
110117

111118
/**
@@ -226,7 +233,13 @@ public static ServiceAccountJwtAccessCredentials fromPkcs8(
226233
URI defaultAudience)
227234
throws IOException {
228235
return ServiceAccountJwtAccessCredentials.fromPkcs8(
229-
clientId, clientEmail, privateKeyPkcs8, privateKeyId, defaultAudience, null, Credentials.GOOGLE_DEFAULT_UNIVERSE);
236+
clientId,
237+
clientEmail,
238+
privateKeyPkcs8,
239+
privateKeyId,
240+
defaultAudience,
241+
null,
242+
Credentials.GOOGLE_DEFAULT_UNIVERSE);
230243
}
231244

232245
static ServiceAccountJwtAccessCredentials fromPkcs8(
@@ -240,7 +253,13 @@ static ServiceAccountJwtAccessCredentials fromPkcs8(
240253
throws IOException {
241254
PrivateKey privateKey = OAuth2Utils.privateKeyFromPkcs8(privateKeyPkcs8);
242255
return new ServiceAccountJwtAccessCredentials(
243-
clientId, clientEmail, privateKey, privateKeyId, defaultAudience, quotaProjectId, universeDomain);
256+
clientId,
257+
clientEmail,
258+
privateKey,
259+
privateKeyId,
260+
defaultAudience,
261+
quotaProjectId,
262+
universeDomain);
244263
}
245264

246265
/**
@@ -554,7 +573,6 @@ public Builder setUniverseDomain(String universeDomain) {
554573
return this;
555574
}
556575

557-
558576
public String getClientId() {
559577
return clientId;
560578
}
@@ -585,7 +603,13 @@ public String getUniverseDomain() {
585603

586604
public ServiceAccountJwtAccessCredentials build() {
587605
return new ServiceAccountJwtAccessCredentials(
588-
clientId, clientEmail, privateKey, privateKeyId, defaultAudience, quotaProjectId, universeDomain);
606+
clientId,
607+
clientEmail,
608+
privateKey,
609+
privateKeyId,
610+
defaultAudience,
611+
quotaProjectId,
612+
universeDomain);
589613
}
590614
}
591615
}

0 commit comments

Comments
 (0)