public class GooglePaymentsPublicKeysManager extends Object
For best performance, use the INSTANCE_PRODUCTION for
production environment or INSTANCE_TEST for test
environment.
If you need extra customizations for your use, we recommend you to use GooglePaymentsPublicKeysManager.Builder to construct an instance and keep it as a singleton in a
static final variable across requests.
When initializing your server, we also recommend that you call refreshInBackground()
to proactively fetch the keys.
| Modifier and Type | Class and Description |
|---|---|
static class |
GooglePaymentsPublicKeysManager.Builder
Builder for
GooglePaymentsPublicKeysManager. |
| Modifier and Type | Field and Description |
|---|---|
static com.google.api.client.http.javanet.NetHttpTransport |
DEFAULT_HTTP_TRANSPORT
Default HTTP transport used by this class.
|
static GooglePaymentsPublicKeysManager |
INSTANCE_PRODUCTION
Instance configured to talk to fetch keys from production environment (from
KEYS_URL_PRODUCTION). |
static GooglePaymentsPublicKeysManager |
INSTANCE_TEST
Instance configured to talk to fetch keys from test environment (from
KEYS_URL_TEST). |
static String |
KEYS_URL_PRODUCTION
URL to fetch keys for environment production.
|
static String |
KEYS_URL_TEST
URL to fetch keys for environment test.
|
| Modifier and Type | Method and Description |
|---|---|
void |
refreshInBackground()
Fetches keys in the background.
|
public static final com.google.api.client.http.javanet.NetHttpTransport DEFAULT_HTTP_TRANSPORT
public static final String KEYS_URL_PRODUCTION
public static final String KEYS_URL_TEST
public static final GooglePaymentsPublicKeysManager INSTANCE_PRODUCTION
KEYS_URL_PRODUCTION).public static final GooglePaymentsPublicKeysManager INSTANCE_TEST
KEYS_URL_TEST).