Polishing.
Remove throws declaration from GcpIamAuthentication as NetHttpTransport construction no longer requires checked exception propagation. See gh-463.
This commit is contained in:
@@ -16,7 +16,6 @@
|
||||
package org.springframework.vault.authentication;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.security.GeneralSecurityException;
|
||||
import java.time.Instant;
|
||||
import java.util.LinkedHashMap;
|
||||
import java.util.Map;
|
||||
@@ -82,13 +81,9 @@ public class GcpIamAuthentication extends GcpJwtAuthenticationSupport
|
||||
*
|
||||
* @param options must not be {@literal null}.
|
||||
* @param restOperations HTTP client for for Vault login, must not be {@literal null}.
|
||||
* @throws GeneralSecurityException thrown by
|
||||
* {@link GoogleApacheHttpTransport#newTrustedTransport()}.
|
||||
* @throws IOException thrown by
|
||||
* {@link GoogleApacheHttpTransport#newTrustedTransport()}.
|
||||
*/
|
||||
public GcpIamAuthentication(GcpIamAuthenticationOptions options,
|
||||
RestOperations restOperations) throws GeneralSecurityException, IOException {
|
||||
RestOperations restOperations) {
|
||||
this(options, restOperations, new NetHttpTransport());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user