public class OAuth2HeaderFactory extends Object implements AuthHeaderFactory
Constructor and Description |
---|
OAuth2HeaderFactory(String refreshToken,
String clientId,
String clientSecret) |
Modifier and Type | Method and Description |
---|---|
String |
getAuthHeader() |
com.google.api.client.googleapis.auth.oauth2.GoogleCredential |
getCredential() |
void |
refreshToken()
Gets the authorization header.
|
public void refreshToken()
AuthHeaderFactory
refreshToken
in interface AuthHeaderFactory
public String getAuthHeader()
getAuthHeader
in interface AuthHeaderFactory
public com.google.api.client.googleapis.auth.oauth2.GoogleCredential getCredential()
Copyright © 2019. All rights reserved.