File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
oauth2_http/java/com/google/auth Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ public String getCertificatePath() throws IOException {
9898 String certPath = loadedConfig .getCertPath ();
9999 if (Strings .isNullOrEmpty (certPath )) {
100100 // Ensure the loaded configuration actually contains the required path.
101- throw new IOException (
101+ throw new CertificateSourceUnavailableException (
102102 "Certificate configuration loaded successfully, but does not contain a 'certificate_file' path." );
103103 }
104104 return certPath ;
Original file line number Diff line number Diff line change @@ -172,7 +172,7 @@ public static class CertificateConfig implements java.io.Serializable {
172172 certificateConfigLocation != null && !certificateConfigLocation .isEmpty ();
173173
174174 checkArgument (
175- !(! useDefault && ! locationIsPresent ),
175+ ( useDefault || locationIsPresent ),
176176 "credentials: \" certificate\" object must either specify a certificate_config_location or use_default_certificate_config should be true" );
177177
178178 checkArgument (
You can’t perform that action at this time.
0 commit comments