add validation to ensure ImpersonatedCredential can only be SA or User Credentials #1602
Labels
priority: p3
Desirable enhancement or fix. May not be included in next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
This line in javadoc specifies ImpersonatedCredential can only be SA or User Credentials in this
create()
method, but it is not enforced.google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/ImpersonatedCredentials.java
Line 120 in a8d466f
For context: #1566 (comment)
The text was updated successfully, but these errors were encountered: