We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 64b48cb commit 4c311eeCopy full SHA for 4c311ee
1 file changed
oauth2_http/java/com/google/auth/oauth2/OAuth2Credentials.java
@@ -37,7 +37,6 @@
37
import com.google.auth.http.AuthHttpConstants;
38
import com.google.common.annotations.VisibleForTesting;
39
import com.google.common.base.MoreObjects;
40
-import com.google.common.base.MoreObjects.ToStringHelper;
41
import com.google.common.base.Preconditions;
42
import com.google.common.collect.Iterables;
43
@@ -131,6 +130,11 @@ public boolean hasRequestMetadataOnly() {
131
130
return true;
132
}
133
+ /**
134
+ * Returns the cached access token.
135
+ *
136
+ * <p>If not set, you should call {@link #refresh()} to fetch and cache an access token.</p>
137
+ */
138
public final AccessToken getAccessToken() {
139
return temporaryAccess;
140
0 commit comments