SearchAuthInfo
Stay organized with collections
Save and categorize content based on your preferences.
Container for auth info used to serving items.
Objects of this class contain the info necessary to authenticate as a given user and perform
a serving on their behalf.
See https://developers.google.com/adwords/api/docs/guides/authentication#create_a_client_id_and_client_secret
for instructions to generate the client secrets.
Public Constructor Summary
|
SearchAuthInfo(File clientSecrets, File credentialsDirectory, String userEmail)
Constructor.
|
Inherited Method Summary
From class
java.lang.Object
boolean
|
equals(Object arg0)
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
Public Constructors
public
SearchAuthInfo
(File clientSecrets, File credentialsDirectory, String userEmail)
Parameters
clientSecrets |
- path to the client secrets JSON file. |
credentialsDirectory |
- path to the directory containing the StoredCredential file
for the client secrets. |
userEmail |
- e-mail of the user associated to the client secrets file.
|
Public Methods
public
File
getCredentialsDirectory
()
public
String
getUserEmail
()
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-03-18 UTC.
[null,null,["Last updated 2025-03-18 UTC."],[],[],null,["# SearchAuthInfo\n\npublic class **SearchAuthInfo** extends Object \nContainer for auth info used to serving items.\n\nObjects of this class contain the info necessary to authenticate as a given user and perform\na serving on their behalf.\n\nSee https://developers.google.com/adwords/api/docs/guides/authentication#create_a_client_id_and_client_secret\nfor instructions to generate the client secrets. \n\n### Public Constructor Summary\n\n|---|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| | [SearchAuthInfo](/workspace/cloud-search/docs/reference/sdk/com/google/enterprise/cloudsearch/sdk/serving/SearchAuthInfo#SearchAuthInfo(java.io.File, java.io.File, java.lang.String))(File clientSecrets, File credentialsDirectory, String userEmail) Constructor. |\n\n### Public Method Summary\n\n|-------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| InputStream | [getClientSecretsStream](/workspace/cloud-search/docs/reference/sdk/com/google/enterprise/cloudsearch/sdk/serving/SearchAuthInfo#getClientSecretsStream())() |\n| File | [getCredentialsDirectory](/workspace/cloud-search/docs/reference/sdk/com/google/enterprise/cloudsearch/sdk/serving/SearchAuthInfo#getCredentialsDirectory())() |\n| String | [getUserEmail](/workspace/cloud-search/docs/reference/sdk/com/google/enterprise/cloudsearch/sdk/serving/SearchAuthInfo#getUserEmail())() |\n\n### Inherited Method Summary\n\nFrom class java.lang.Object \n\n|------------------|---------------------------|\n| boolean | equals(Object arg0) |\n| final Class\\\u003c?\\\u003e | getClass() |\n| int | hashCode() |\n| final void | notify() |\n| final void | notifyAll() |\n| String | toString() |\n| final void | wait(long arg0, int arg1) |\n| final void | wait(long arg0) |\n| final void | wait() |\n\nPublic Constructors\n-------------------\n\n#### public\n**SearchAuthInfo**\n(File clientSecrets, File credentialsDirectory, String userEmail)\n\nConstructor. \n\n##### Parameters\n\n| clientSecrets | - path to the client secrets JSON file. |\n| credentialsDirectory | - path to the directory containing the StoredCredential file for the client secrets. |\n| userEmail | - e-mail of the user associated to the client secrets file. |\n|----------------------|--------------------------------------------------------------------------------------|\n\nPublic Methods\n--------------\n\n#### public InputStream\n**getClientSecretsStream**\n()\n\n\u003cbr /\u003e\n\n##### Throws\n\n| FileNotFoundException | |\n|-----------------------|---|\n\n#### public File\n**getCredentialsDirectory**\n()\n\n\u003cbr /\u003e\n\n#### public String\n**getUserEmail**\n()\n\n\u003cbr /\u003e"]]