Skip to content

Commit 88b3810

Browse files
authored
Add back in deprecated methods in ServiceAccountJwtAccessCredentials (#238)
* Add back in deprecated methods in ServiceAccountJwtAccessCredentials * typo fix * change constructor to private * change constructor to private
1 parent 49b39ae commit 88b3810

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

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

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,22 @@ public class ServiceAccountJwtAccessCredentials extends Credentials
9696
@VisibleForTesting
9797
transient Clock clock = Clock.SYSTEM;
9898

99+
/**
100+
* Constructor with minimum identifying information.
101+
*
102+
* @param clientId Client ID of the service account from the console. May be null.
103+
* @param clientEmail Client email address of the service account from the console.
104+
* @param privateKey RSA private key object for the service account.
105+
* @param privateKeyId Private key identifier for the service account. May be null.
106+
* @deprecated Use {@link #newBuilder()} instead. This constructor will either be deleted or made
107+
* private in a later version.
108+
*/
109+
@Deprecated
110+
public ServiceAccountJwtAccessCredentials(
111+
String clientId, String clientEmail, PrivateKey privateKey, String privateKeyId) {
112+
this(clientId, clientEmail, privateKey, privateKeyId, null);
113+
}
114+
99115
/**
100116
* Constructor with full information.
101117
*

0 commit comments

Comments
 (0)