3838import com .google .auth .Credentials ;
3939import com .google .auth .http .HttpTransportFactory ;
4040import com .google .auth .oauth2 .AccessToken ;
41+ import com .google .auth .oauth2 .CredentialAccessBoundary ;
4142import com .google .auth .oauth2 .GoogleCredentials ;
4243import com .google .auth .oauth2 .OAuth2Utils ;
4344import com .google .auth .oauth2 .StsRequestHandler ;
@@ -60,7 +61,7 @@ private ClientSideCredentialAccessBoundaryFactory(Builder builder) {
6061 this .tokenExchangeEndpoint = builder .tokenExchangeEndpoint ;
6162 }
6263
63- private void refreshIntermediateCredentials () throws IOException {
64+ private void refreshCredentials () throws IOException {
6465 try {
6566 this .sourceCredential .refreshIfExpired ();
6667 } catch (IOException e ) {
@@ -100,6 +101,16 @@ private void refreshIntermediateCredentials() throws IOException {
100101 }
101102 }
102103
104+ private void refreshCredentialsIfRequired () {
105+ // TODO(negarb): Implement refreshCredentialsIfRequired
106+ throw new UnsupportedOperationException ("refreshCredentialsIfRequired is not yet implemented." );
107+ }
108+
109+ public AccessToken generateToken (CredentialAccessBoundary accessBoundary ) {
110+ // TODO(negarb/jiahuah): Implement generateToken
111+ throw new UnsupportedOperationException ("generateToken is not yet implemented." );
112+ }
113+
103114 public static Builder newBuilder () {
104115 return new Builder ();
105116 }
@@ -113,11 +124,12 @@ public static class Builder {
113124 private Builder () {}
114125
115126 /**
116- * Sets the required source credential used to acquire the intermediary credential .
127+ * Sets the required source credential.
117128 *
118129 * @param sourceCredential the {@code GoogleCredentials} to set
119130 * @return this {@code Builder} object
120131 */
132+ @ CanIgnoreReturnValue
121133 public Builder setSourceCredential (GoogleCredentials sourceCredential ) {
122134 this .sourceCredential = sourceCredential ;
123135 return this ;
0 commit comments