public class SyncSecurityCheckExecutor
extends java.lang.Object
SecurityChecks.| Modifier and Type | Class and Description |
|---|---|
static class |
SyncSecurityCheckExecutor.Builder
Builder class for constructing a SyncSecurityCheckExecutor 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,SecurityCheckResult> |
execute()
Executes the provided checks and returns the results.
|
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,SecurityCheckResult> execute()
Map containing the results of each executed test. The key of the map will
be the output of SecurityCheck.getName(), while the value will be 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