Skip to content

Commit 07a1912

Browse files
committed
revert changes to fromPkcs8
1 parent 04e8056 commit 07a1912

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ public static ServiceAccountJwtAccessCredentials fromPkcs8(
234234
privateKeyId,
235235
defaultAudience,
236236
null,
237-
null);
237+
Credentials.GOOGLE_DEFAULT_UNIVERSE);
238238
}
239239

240240
static ServiceAccountJwtAccessCredentials fromPkcs8(

oauth2_http/javatests/com/google/auth/oauth2/ServiceAccountJwtAccessCredentialsTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -884,7 +884,7 @@ public void fromPkcs8_NoUniverseDomain() throws IOException {
884884
assertEquals(
885885
OAuth2Utils.privateKeyFromPkcs8(SA_PRIVATE_KEY_PKCS8), credentials.getPrivateKey());
886886
assertNull(credentials.getQuotaProjectId());
887-
assertNull(credentials.getUniverseDomain());
887+
assertEquals(Credentials.GOOGLE_DEFAULT_UNIVERSE, credentials.getUniverseDomain());
888888
}
889889

890890
@Test

0 commit comments

Comments
 (0)