Skip to content

Commit 571c9ac

Browse files
committed
fix: add comment about EC algorithm support in GdchCredentials
1 parent 1c5e7bb commit 571c9ac

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,7 @@ static GdchCredentials fromJson(Map<String, Object> json, HttpTransportFactory t
233233
*/
234234
static GdchCredentials fromPkcs8(String privateKeyPkcs8, GdchCredentials.Builder builder)
235235
throws IOException {
236+
// GDCH key generation natively only supports the EC algorithm.
236237
PrivateKey privateKey =
237238
OAuth2Utils.privateKeyFromPkcs8(privateKeyPkcs8, OAuth2Utils.Pkcs8Algorithm.EC);
238239
builder.setPrivateKey(privateKey);

0 commit comments

Comments
 (0)