public static class SyncSecurityCheckExecutor.Builder
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
SyncSecurityCheckExecutor |
build()
Creates a new SyncSecurityCheckExecutor 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.
|
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 SyncSecurityCheckExecutor build()
SyncSecurityCheckExecutorpublic 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