public abstract class CardApi
extends Api
This file is open source and available under the MIT license. See the LICENSE file for more info.
Created by timon on 25/01/2018.
Modifier and Type | Field and Description |
---|---|
static HostProvider |
LIVE_AU
The
HostProvider connecting to the live environment in Australia. |
static HostProvider |
LIVE_EU
The
HostProvider connecting to the live environment in Europe. |
static HostProvider |
LIVE_US
The
HostProvider connecting to the live environment in the US. |
static HostProvider |
TEST
The
HostProvider connecting to the test environment. |
Constructor and Description |
---|
CardApi() |
Modifier and Type | Method and Description |
---|---|
static CardApi |
getInstance(Application application,
HostProvider hostProvider)
Get the
CardApi instance. |
abstract java.util.concurrent.Callable<java.lang.String> |
getPublicKey(java.lang.String publicKeyToken)
Creates a
Callable object to retrieve a public key for a given public key token. |
public static final HostProvider TEST
HostProvider
connecting to the test environment.public static final HostProvider LIVE_EU
HostProvider
connecting to the live environment in Europe.public static final HostProvider LIVE_US
HostProvider
connecting to the live environment in the US.public static final HostProvider LIVE_AU
HostProvider
connecting to the live environment in Australia.public static CardApi getInstance(Application application, HostProvider hostProvider)
CardApi
instance.application
- The current Application
.hostProvider
- The HostProvider
indicating the host to connect to.CardApi
instance.public abstract java.util.concurrent.Callable<java.lang.String> getPublicKey(java.lang.String publicKeyToken)
Callable
object to retrieve a public key for a given public key token.publicKeyToken
- The public key token.Callable
object to retrieve a public key for a given public key token.