Class SystemPropertyDetector
- java.lang.Object
-
- org.forgerock.android.auth.detector.SystemPropertyDetector
-
- All Implemented Interfaces:
RootDetector
- Direct Known Subclasses:
DangerousPropertyDetector
public abstract class SystemPropertyDetector extends java.lang.Object implements RootDetector
Check system property with expected value.
-
-
Constructor Summary
Constructors Constructor Description SystemPropertyDetector()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract java.util.Map<java.lang.String,java.lang.String>getProperties()doubleisRooted(android.content.Context context)Detect the device is rooted.
-
-
-
Method Detail
-
isRooted
public double isRooted(android.content.Context context)
Description copied from interface:RootDetectorDetect the device is rooted.- Specified by:
isRootedin interfaceRootDetector- Parameters:
context- The application context- Returns:
- 0 - 1 How likely the device is rooted, 0 - not likely, 0.5 - likely, 1 - Very likely
-
getProperties
protected abstract java.util.Map<java.lang.String,java.lang.String> getProperties()
-
-