Class FidoService
java.lang.Object
io.jans.casa.plugins.authnmethod.service.FidoService
- Author:
- jgomer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetDevicesTotal(String appId, String userId, boolean active) <T extends FidoDevice>
TgetLatestFidoDevice(String userId, long time, String oxApp, Class<T> clazz) getPropertyValue(String key) static <T extends FidoDevice>
TgetRecentlyCreatedDevice(List<T> devices, long time) Chooses one device from a list of devices, such that its creation time is the closest to the timestamp given and falls one minute before the timestampbooleanremoveDevice(FidoDevice device, String userId) booleanupdateDevice(FidoDevice device, String userInum)
-
Constructor Details
-
FidoService
public FidoService()
-
-
Method Details
-
updateDevice
-
removeDevice
-
getDevicesTotal
-
getLatestFidoDevice
public <T extends FidoDevice> T getLatestFidoDevice(String userId, long time, String oxApp, Class<T> clazz) throws Exception - Throws:
Exception
-
getRecentlyCreatedDevice
Chooses one device from a list of devices, such that its creation time is the closest to the timestamp given and falls one minute before the timestamp- Type Parameters:
T-- Parameters:
devices- A non-null list of fido devicestime- A timestamp as milliseconds elapsed from the "epoch"- Returns:
- The best matching device (only devices added before the time supplied are considered). Null if no suitable device could be found
-
getPropertyValue
-