Skip to content

Commit 0596c93

Browse files
committed
Merge pull request #53 from pongad/master
add accessor methods to UserCredentials
2 parents 078e95e + 6192eb0 commit 0596c93

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/UserCredentials.java

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,29 @@ public AccessToken refreshAccessToken() throws IOException {
129129
return access;
130130
}
131131

132+
/**
133+
* Returns client ID of the credential from the console.
134+
*
135+
* @return client ID
136+
*/
137+
public final String getClientId() {
138+
return clientId;
139+
}
140+
141+
/**
142+
* Returns client secret of the credential from the console.
143+
*
144+
* @return client secret
145+
*/
146+
public final String getClientSecret() {
147+
return clientSecret;
148+
}
149+
150+
/**
151+
* Returns the refresh token resulting from a OAuth2 consent flow.
152+
*
153+
* @return refresh token
154+
*/
132155
public final String getRefreshToken() {
133156
return refreshToken;
134157
}

0 commit comments

Comments
 (0)