-
public class BithumanAuth
-
-
Field Summary
Fields Modifier and Type Field Description private final StringSELF_HOSTED_ESSENCE_MODELprivate final static AuthStatestateprivate final static StringlastErrorpublic final static BithumanAuthINSTANCE
-
Method Summary
Modifier and Type Method Description final static Unitconfigure(String apiSecret, String billingType, String tags, String fingerprint, String endpoint, Integer intervalSeconds, Integer offlineGraceSeconds)Configure + synchronously authenticate the singleton heartbeat client, then spawn the background heartbeat thread. final static Unitconfigure(String apiSecret, String billingType, String tags, String fingerprint, String endpoint, Integer intervalSeconds)Configure + synchronously authenticate the singleton heartbeat client, then spawn the background heartbeat thread. final static Unitconfigure(String apiSecret, String billingType, String tags, String fingerprint, String endpoint)Configure + synchronously authenticate the singleton heartbeat client, then spawn the background heartbeat thread. final static Unitconfigure(String apiSecret, String billingType, String tags, String fingerprint)Configure + synchronously authenticate the singleton heartbeat client, then spawn the background heartbeat thread. final static Unitconfigure(String apiSecret, String billingType, String tags)Configure + synchronously authenticate the singleton heartbeat client, then spawn the background heartbeat thread. final static Unitconfigure(String apiSecret, String billingType)Configure + synchronously authenticate the singleton heartbeat client, then spawn the background heartbeat thread. final static Unitconfigure(String apiSecret)Configure + synchronously authenticate the singleton heartbeat client, then spawn the background heartbeat thread. final static Unitshutdown()Stop heartbeat thread + free the singleton. final StringgetSELF_HOSTED_ESSENCE_MODEL()Default billing type — on-device Essence runtime, 1 credit / minute. final static AuthStategetState()final static StringgetLastError()-
-
Method Detail
-
configure
@JvmOverloads() final static Unit configure(String apiSecret, String billingType, String tags, String fingerprint, String endpoint, Integer intervalSeconds, Integer offlineGraceSeconds)
Configure + synchronously authenticate the singleton heartbeat client, then spawn the background heartbeat thread.
Repeated calls reset the config. Throws BithumanException on a 402/403 or initial network failure.
-
configure
@JvmOverloads() final static Unit configure(String apiSecret, String billingType, String tags, String fingerprint, String endpoint, Integer intervalSeconds)
Configure + synchronously authenticate the singleton heartbeat client, then spawn the background heartbeat thread.
Repeated calls reset the config. Throws BithumanException on a 402/403 or initial network failure.
-
configure
@JvmOverloads() final static Unit configure(String apiSecret, String billingType, String tags, String fingerprint, String endpoint)
Configure + synchronously authenticate the singleton heartbeat client, then spawn the background heartbeat thread.
Repeated calls reset the config. Throws BithumanException on a 402/403 or initial network failure.
-
configure
@JvmOverloads() final static Unit configure(String apiSecret, String billingType, String tags, String fingerprint)
Configure + synchronously authenticate the singleton heartbeat client, then spawn the background heartbeat thread.
Repeated calls reset the config. Throws BithumanException on a 402/403 or initial network failure.
-
configure
@JvmOverloads() final static Unit configure(String apiSecret, String billingType, String tags)
Configure + synchronously authenticate the singleton heartbeat client, then spawn the background heartbeat thread.
Repeated calls reset the config. Throws BithumanException on a 402/403 or initial network failure.
-
configure
@JvmOverloads() final static Unit configure(String apiSecret, String billingType)
Configure + synchronously authenticate the singleton heartbeat client, then spawn the background heartbeat thread.
Repeated calls reset the config. Throws BithumanException on a 402/403 or initial network failure.
-
configure
@JvmOverloads() final static Unit configure(String apiSecret)
Configure + synchronously authenticate the singleton heartbeat client, then spawn the background heartbeat thread.
Repeated calls reset the config. Throws BithumanException on a 402/403 or initial network failure.
-
getSELF_HOSTED_ESSENCE_MODEL
final String getSELF_HOSTED_ESSENCE_MODEL()
Default billing type — on-device Essence runtime, 1 credit / minute.
-
getLastError
final static String getLastError()
-
-
-
-