gluu
|
公開メンバ関数 | |
void | reloadConfiguration () |
int | getDevicesTotal (String userId, boolean active) |
List< SuperGluuDevice > | getDevices (String userId, boolean active) |
SGConfig | getConf () |
String | generateRequest (String userName, String code, String remoteIp) |
SuperGluuDevice | getLatestSuperGluuDevice (String userId, long time) |
boolean | isDeviceUnique (SuperGluuDevice dev, String userId) throws Exception |
boolean | updateDevice (FidoDevice device) |
boolean | removeDevice (FidoDevice device) |
int | getDevicesTotal (String appId, String userId, boolean active) |
関数 | |
public< T extends FidoDevice > T | getLatestFidoDevice (String userId, long time, String oxApp, Class< T > clazz) throws Exception |
private< T extends FidoDevice > List< T > | getDevices (String userId, boolean active, String oxApplication, Class< T > clazz) throws Exception |
< T extends FidoDevice > List< T > | getSortedDevices (String userId, boolean active, String appId, Class< T > clazz) |
private< T extends FidoDevice > T | getRecentlyCreatedDevice (List< T > devices, long time) |
変数 | |
MainSettings | settings |
非公開メンバ関数 | |
void | inited () |
非公開変数類 | |
Logger | logger |
LdapService | ldapService |
SGConfig | conf |
ObjectMapper | mapper |
静的非公開変数類 | |
static final String | GEOLOCATION_URL_PATTERN = "http://ip-api.com/json/{0}?fields=regionName,country,city,status,message" |
static final int | GEO_REQ_TIMEOUT = 5000 |
An app. scoped bean that encapsulates logic needed to enroll supergluu devices
|
inline |
Builds a string that encodes information in order to display a QR code
userName | Username string |
code | An enrollment code associated to the code |
remoteIp | An IP address to encode in the request (possibly null) |
|
inline |
|
inline |
|
inlinepackageinherited |
Returns a list of FidoDevice instances found under the given branch that matches the oxApplication value given and whose oxStatus attribute equals to "active"
userId | |
oxApplication | Value to match for oxApplication attribute (see LDAP object class oxDeviceRegistration) |
clazz | Any subclass of FidoDevice |
<T> |
|
inlineinherited |
|
inline |
|
inlinepackageinherited |
|
inline |
Returns the most recently added (with respect to the timestamp passed) Super Gluu device for the user in question
userId | |
time | Timestamp (milliseconds from the "epoch") |
|
inlinepackageinherited |
Chooses one device from a list of devices, such that its creation time is the closest to the timestamp given
devices | A non-null list of fido devices |
time | A timestamp as milliseconds elapsed from the "epoch" |
<T> |
|
inlinepackageinherited |
|
inlineprivate |
|
inline |
Determines if the device passed is enrolled exactly once or more times
dev | A SuperGluuDevice instance |
userId | A reference to a user |
Exception | If the device is not even enrolled |
|
inline |
|
inlineinherited |
|
inlineinherited |
|
private |
|
staticprivate |
|
staticprivate |
|
private |
|
private |
|
private |
|
packageinherited |