public abstract class AbstractSecurityCheck extends java.lang.Object implements SecurityCheck
| Constructor and Description |
|---|
AbstractSecurityCheck() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract boolean |
execute(android.content.Context context)
Executes the check.
|
SecurityCheckResult |
test(android.content.Context context)
Checks that the context is not null and delegates the check execution to the
execute(Context) method. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetNamepublic final SecurityCheckResult test(@NonNull android.content.Context context)
execute(Context) method.test in interface SecurityCheckcontext - Context to be used by the checkSecurityCheckResult embedding the result of execute(Context)java.lang.IllegalArgumentException - if context is nullprotected abstract boolean execute(@NonNull
android.content.Context context)
context - context to be used to perform the checktrue if the check has passed, false otherwise