public class AsyncSecurityCheckExecutor
extends java.lang.Object
AppExecutors.singleThreadService() if no custom executor is configured.| Modifier and Type | Class and Description |
|---|---|
static class |
AsyncSecurityCheckExecutor.Builder
Builder class for constructing an AsyncSecurityCheckExecutor object.
|
| Modifier and Type | Method and Description |
|---|---|
T |
addCheck(SecurityCheck check)
Adds a new check to be executed.
|
T |
addCheck(SecurityCheckType checkType)
Adds a new check to be executed.
|
java.util.Map<java.lang.String,java.util.concurrent.Future<SecurityCheckResult>> |
execute()
Executes the checks asynchronously.
|
protected java.util.Collection<SecurityCheck> |
getChecks()
Gets all the checks to be executed.
|
protected android.content.Context |
getContext()
Gets the context for the device.
|
protected SecurityCheckExecutorListener |
getMetricServicePublisher()
Gets the metric published.
|
public java.util.Map<java.lang.String,java.util.concurrent.Future<SecurityCheckResult>> execute()
Map containing the results of each executed test (a Future). The
key of the map will be the output of SecurityCheck.getName(), while the value will be
a Map of Future with the SecurityCheckResult of the check.Mapprotected java.util.Collection<SecurityCheck> getChecks()
Collection of SecurityCheckprotected android.content.Context getContext()
Contextprotected SecurityCheckExecutorListener getMetricServicePublisher()
public T addCheck(SecurityCheck check)
check - the new SecurityCheck to be executedpublic T addCheck(SecurityCheckType checkType)
checkType - the SecurityCheckType of the new check to be executed