com.google.api.client.googleapis.auth.oauth2.GoogleClientSecrets.Details

Here are the examples of the java api class com.google.api.client.googleapis.auth.oauth2.GoogleClientSecrets.Details taken from open source projects.

1. GoogleClientSecretsTest#testLoad()

View license
public void testLoad() throws Exception {
    GoogleClientSecrets clientSecrets = GoogleClientSecrets.load(new GsonFactory(), new StringReader(CLIENT_SECRETS));
    Details installed = clientSecrets.getInstalled();
    assertNotNull(installed);
    assertEquals(CLIENT_ID, installed.getClientId());
    assertEquals(CLIENT_SECRET, installed.getClientSecret());
}