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()
AuthHeaderFactoryrefreshToken in interface AuthHeaderFactorypublic String getAuthHeader()
getAuthHeader in interface AuthHeaderFactorypublic com.google.api.client.googleapis.auth.oauth2.GoogleCredential getCredential()
Copyright © 2018 JBoss by Red Hat. All rights reserved.