Class FRDeviceCollector
- java.lang.Object
-
- org.forgerock.android.auth.collector.FRDeviceCollector
-
- All Implemented Interfaces:
DeviceCollector,Interceptor<org.json.JSONObject>
public class FRDeviceCollector extends java.lang.Object implements DeviceCollector
Collector to collect Device information
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFRDeviceCollector.FRDeviceCollectorBuilder-
Nested classes/interfaces inherited from interface org.forgerock.android.auth.Interceptor
Interceptor.Chain
-
-
Field Summary
Fields Modifier and Type Field Description static FRDeviceCollectorDEFAULTThe Default Device Collector to retrieve the device attribute.static java.util.List<DeviceCollector>DEFAULT_COLLECTORS-
Fields inherited from interface org.forgerock.android.auth.collector.DeviceCollector
TAG
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FRDeviceCollector.FRDeviceCollectorBuilderbuilder()voidcollect(android.content.Context context, FRListener<org.json.JSONObject> listener)Collect the device data.java.util.List<DeviceCollector>getCollectors()java.lang.StringgetName()Retrieve the name of the Collector-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.forgerock.android.auth.collector.DeviceCollector
collect, intercept
-
-
-
-
Field Detail
-
DEFAULT_COLLECTORS
public static final java.util.List<DeviceCollector> DEFAULT_COLLECTORS
-
DEFAULT
public static final FRDeviceCollector DEFAULT
The Default Device Collector to retrieve the device attribute.
-
-
Method Detail
-
getName
public java.lang.String getName()
Description copied from interface:DeviceCollectorRetrieve the name of the Collector- Specified by:
getNamein interfaceDeviceCollector- Returns:
- The name of the Collector
-
collect
public void collect(android.content.Context context, FRListener<org.json.JSONObject> listener)Description copied from interface:DeviceCollectorCollect the device data.- Specified by:
collectin interfaceDeviceCollector- Parameters:
context- The Application Contextlistener- Listener to listen for collected data.
-
builder
public static FRDeviceCollector.FRDeviceCollectorBuilder builder()
-
getCollectors
public java.util.List<DeviceCollector> getCollectors()
-
-