public static class AsyncSecurityCheckExecutor.Builder
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
AsyncSecurityCheckExecutor |
build()
Creates a new AsyncSecurityCheckExecutor object.
|
protected java.util.Collection<SecurityCheck> |
getChecks()
Gets all the checks that are to be tested.
|
protected android.content.Context |
getCtx()
Gets the context for the device.
|
protected org.aerogear.mobile.core.metrics.MetricsService |
getMetricsService()
Gets the metric service being used.
|
AsyncSecurityCheckExecutor.Builder |
withExecutorService(java.util.concurrent.ExecutorService executorService)
A custom
ExecutorService for this SecurityCheckExecutor. |
T |
withMetricsService(org.aerogear.mobile.core.metrics.MetricsService metricsService)
Sets the metric service to be used.
|
T |
withSecurityCheck(SecurityCheck check)
Adds a new security check by providing a security check instance.
|
T |
withSecurityCheck(SecurityCheckType checkType)
Adds a new security check by providing a
SecurityCheckType |
public AsyncSecurityCheckExecutor.Builder withExecutorService(@Nullable java.util.concurrent.ExecutorService executorService)
ExecutorService for this SecurityCheckExecutor.executorService - the ExecutorService to be used. Defaults to
AppExecutors.singleThreadService() if nullpublic AsyncSecurityCheckExecutor build()
ExecutorService has been defined, defaults to
AppExecutors.singleThreadService().AsyncSecurityCheckExecutorpublic T withSecurityCheck(@NonNull
SecurityCheck check)
check - the SecurityCheck to be addedjava.lang.IllegalArgumentException - if check is nullpublic T withSecurityCheck(@NonNull
SecurityCheckType checkType)
SecurityCheckTypecheckType - SecurityCheckType to be addedjava.lang.IllegalArgumentException - if checkType is nullpublic T withMetricsService(@Nullable
org.aerogear.mobile.core.metrics.MetricsService metricsService)
AppExecutors.singleThreadService().metricsService - the MetricsService
AppExecutors.singleThreadService() to be used. Can be nullprotected android.content.Context getCtx()
Contextprotected org.aerogear.mobile.core.metrics.MetricsService getMetricsService()
MetricsServiceprotected java.util.Collection<SecurityCheck> getChecks()
Collection