| /forgerock/openam-v13/openam-scripting/src/main/js/ |
| H A D | deviceIdMatch-client-side.js | 113 devicePrint = {}; 115 devicePrint.screen = collectScreenInfo(); 116 devicePrint.timezone = collectTimezoneInfo(); 117 devicePrint.plugins = collectBrowserPluginsInfo(); 118 devicePrint.fonts = collectBrowserFontsInfo(); 121 devicePrint.userAgent = navigator.userAgent; 124 devicePrint.appName = navigator.appName; 127 devicePrint.appCodeName = navigator.appCodeName; 130 devicePrint.appVersion = navigator.appVersion; 133 devicePrint [all...] |
| H A D | deviceIdMatch-server-side.js | 643 function hasRequiredAttributes(devicePrint, attributeConfig) { 652 attrValue = getValue(devicePrint, attributePaths[i]); 665 function compareDevicePrintProfiles(attributeConfig, devicePrint, devicePrintProfiles, maxPenaltyPoints) { 686 currentValue = getValue(devicePrint, attributePaths[i]); 687 storedValue = getValue(devicePrintProfiles[j].devicePrint, attributePaths[i]); 747 selectedProfile.devicePrint = devicePrint; 767 logger.message("client devicePrint: " + clientScriptOutputData); 806 devicePrint = JSON.parse(clientScriptOutputData), 809 if (!hasRequiredAttributes(devicePrint, confi [all...] |
| /forgerock/openam-v13/openam-authentication/deviceprint/module/src/main/java/org/forgerock/openam/authentication/modules/deviceprint/ |
| H A D | DevicePrintAuthenticationConfig.java | 127 * @param devicePrint The Device Print information. 130 public boolean hasRequiredAttributes(DevicePrint devicePrint) { argument 135 devicePrint.getInstalledFonts()); 138 devicePrint.getLatitude(), devicePrint.getLongitude()); 141 devicePrint.getInstalledPlugins()); 144 devicePrint.getScreenColourDepth(), devicePrint.getScreenHeight(), devicePrint.getScreenWidth()); 147 devicePrint [all...] |
| H A D | DevicePrintService.java | 94 * @param devicePrint The Device Print information. 97 public boolean hasRequiredAttributes(DevicePrint devicePrint) { argument 98 return devicePrintAuthenticationConfig.hasRequiredAttributes(devicePrint); 108 DevicePrint devicePrint = new DevicePrint(); 110 extractor.extractData(devicePrint, request); 112 return devicePrint; 122 * @param devicePrint The Device Print to find a match for. 125 public UserProfile getBestMatchingUserProfile(DevicePrint devicePrint) { argument 131 comparisonResultMap.put(devicePrintComparator.compare(devicePrint, storedDevicePrint, 153 * @param devicePrint Th 156 createNewProfile(DevicePrint devicePrint) argument 173 updateProfile(UserProfile profile, DevicePrint devicePrint) argument [all...] |
| /forgerock/openam-v13/openam-authentication/deviceprint/module/src/main/java/org/forgerock/openam/authentication/modules/deviceprint/extractors/ |
| H A D | Extractor.java | 47 * @param devicePrint The current Device Print information. 50 void extractData(DevicePrint devicePrint, HttpServletRequest request); argument
|
| H A D | FormExtractor.java | 57 public void extractData(DevicePrint devicePrint, HttpServletRequest request) { argument 76 devicePrint.merge(devicePrintFromJson);
|
| H A D | HttpHeadersExtractor.java | 49 public void extractData(DevicePrint devicePrint, HttpServletRequest request) { argument 50 devicePrint.setUserAgent(request.getHeader(USER_AGENT));
|
| /forgerock/openam-v13/openam-authentication/deviceprint/module/src/main/java/org/forgerock/openam/authentication/modules/deviceprint/model/ |
| H A D | UserProfile.java | 55 private DevicePrint devicePrint = new DevicePrint(); field in class:UserProfile 120 return devicePrint; 126 * @param devicePrint The Device Print information. 128 public void setDevicePrint(DevicePrint devicePrint) { argument 129 this.devicePrint = devicePrint;
|
| /forgerock/openam-v13/openam-authentication/deviceprint/module/src/test/java/org/forgerock/openam/authentication/modules/deviceprint/ |
| H A D | DevicePrintAuthenticationConfigTest.java | 134 DevicePrint devicePrint = mock(DevicePrint.class); 136 given(devicePrint.getInstalledFonts()).willReturn("INSTALLED_FONTS"); 137 given(devicePrint.getLatitude()).willReturn(2.0); 138 given(devicePrint.getLongitude()).willReturn(3.0); 139 given(devicePrint.getInstalledPlugins()).willReturn("INSTALLED+PLUGINS"); 140 given(devicePrint.getScreenColourDepth()).willReturn("SCREEN_COLOUR_DEPTH"); 141 given(devicePrint.getScreenHeight()).willReturn("SCREEN_HEIGHT"); 142 given(devicePrint.getScreenWidth()).willReturn("SCREEN_WIDTH"); 143 given(devicePrint.getTimezone()).willReturn("TIMEZONE"); 144 given(devicePrint [all...] |
| H A D | DevicePrintAuthenticationServiceTest.java | 102 DevicePrint devicePrint = mock(DevicePrint.class); 106 given(devicePrintService.getDevicePrint(request)).willReturn(devicePrint); 107 given(devicePrintService.hasRequiredAttributes(devicePrint)).willReturn(false); 126 DevicePrint devicePrint = mock(DevicePrint.class); 131 given(devicePrintService.getDevicePrint(request)).willReturn(devicePrint); 132 given(devicePrintService.hasRequiredAttributes(devicePrint)).willReturn(true); 133 given(devicePrintService.getBestMatchingUserProfile(devicePrint)).willReturn(selectedUserProfile); 152 DevicePrint devicePrint = mock(DevicePrint.class); 158 given(devicePrintService.getDevicePrint(request)).willReturn(devicePrint); 159 given(devicePrintService.hasRequiredAttributes(devicePrint)) [all...] |
| H A D | DevicePrintServiceTest.java | 89 DevicePrint devicePrint = mock(DevicePrint.class); 92 devicePrintService.hasRequiredAttributes(devicePrint); 95 verify(devicePrintAuthenticationConfig).hasRequiredAttributes(devicePrint); 112 DevicePrint devicePrint = devicePrintService.getDevicePrint(request); 117 assertNotNull(devicePrint); 124 DevicePrint devicePrint = mock(DevicePrint.class); 130 UserProfile selectedUserProfile = devicePrintService.getBestMatchingUserProfile(devicePrint); 140 DevicePrint devicePrint = mock(DevicePrint.class); 164 given(devicePrintComparator.compare(devicePrint, userProfileOneDevicePrint, 166 given(devicePrintComparator.compare(devicePrint, userProfileThreeDevicePrin [all...] |
| H A D | UserProfilesDaoTest.java | 61 private static final String USER_PROFILE_ONE = "{\"uuid\":\"UUID1\",\"lastSelectedDate\":\"2013-05-15T16:11:00.825+0000\",\"selectionCounter\":1,\"devicePrint\":{\"screenColourDepth\":\"SCREEN_COLOUR_DEPTH\",\"screenHeight\":\"SCREEN_HEIGHT\",\"screenWidth\":\"SCREEN_WIDTH\",\"installedPlugins\":\"INSTALLED_PLUGINS\",\"installedFonts\":\"INSTALLED_FONTS\",\"timezone\":\"TIMEZONE\",\"longitude\":2.0,\"latitude\":3.0,\"userAgent\":\"USER_AGENT\"}}"; 62 private static final String USER_PROFILE_TWO = "{\"uuid\":\"UUID2\",\"lastSelectedDate\":\"2013-05-15T16:11:00.825+0000\",\"selectionCounter\":1,\"devicePrint\":{\"screenColourDepth\":\"SCREEN_COLOUR_DEPTH\",\"screenHeight\":\"SCREEN_HEIGHT\",\"screenWidth\":\"SCREEN_WIDTH\",\"installedPlugins\":\"INSTALLED_PLUGINS\",\"installedFonts\":\"INSTALLED_FONTS\",\"timezone\":\"TIMEZONE\",\"longitude\":2.0,\"latitude\":3.0,\"userAgent\":\"USER_AGENT\"}}"; 63 private static final String USER_PROFILE_THREE = "{\"uuid\":\"UUID3\",\"lastSelectedDate\":\"2013-05-15T16:11:00.825+0000\",\"selectionCounter\":1,\"devicePrint\":{\"screenColourDepth\":\"SCREEN_COLOUR_DEPTH\",\"screenHeight\":\"SCREEN_HEIGHT\",\"screenWidth\":\"SCREEN_WIDTH\",\"installedPlugins\":\"INSTALLED_PLUGINS\",\"installedFonts\":\"INSTALLED_FONTS\",\"timezone\":\"TIMEZONE\",\"longitude\":2.0,\"latitude\":3.0,\"userAgent\":\"USER_AGENT\"}}"; 170 DevicePrint devicePrint = new DevicePrint(); 171 devicePrint.setScreenColourDepth("SCREEN_COLOUR_DEPTH"); 172 devicePrint.setScreenHeight("SCREEN_HEIGHT"); 173 devicePrint.setScreenWidth("SCREEN_WIDTH"); 174 devicePrint.setInstalledPlugins("INSTALLED_PLUGINS"); 175 devicePrint.setInstalledFonts("INSTALLED_FONTS"); 176 devicePrint [all...] |
| /forgerock/openam-v13/openam-authentication/openam-auth-device-id/src/main/java/org/forgerock/openam/authentication/modules/deviceprint/ |
| H A D | ProfilePersister.java | 59 * @param devicePrint The device print. 61 void saveDevicePrint(Map<String, Object> devicePrint) { argument 62 saveDevicePrint(null, devicePrint); 68 * @param devicePrint The device print. 70 void saveDevicePrint(String name, Map<String, Object> devicePrint) { argument 88 profile.put("devicePrint", devicePrint);
|
| /forgerock/openam/openam-scripting/src/main/js/ |
| H A D | deviceIdMatch-client-side.js | 113 devicePrint = {}; 115 devicePrint.screen = collectScreenInfo(); 116 devicePrint.timezone = collectTimezoneInfo(); 117 devicePrint.plugins = collectBrowserPluginsInfo(); 118 devicePrint.fonts = collectBrowserFontsInfo(); 121 devicePrint.userAgent = navigator.userAgent; 124 devicePrint.appName = navigator.appName; 127 devicePrint.appCodeName = navigator.appCodeName; 130 devicePrint.appVersion = navigator.appVersion; 133 devicePrint [all...] |
| H A D | deviceIdMatch-server-side.js | 643 function hasRequiredAttributes(devicePrint, attributeConfig) { 652 attrValue = getValue(devicePrint, attributePaths[i]); 665 function compareDevicePrintProfiles(attributeConfig, devicePrint, devicePrintProfiles, maxPenaltyPoints) { 686 currentValue = getValue(devicePrint, attributePaths[i]); 687 storedValue = getValue(devicePrintProfiles[j].devicePrint, attributePaths[i]); 747 selectedProfile.devicePrint = devicePrint; 767 logger.message("client devicePrint: " + clientScriptOutputData); 806 devicePrint = JSON.parse(clientScriptOutputData), 809 if (!hasRequiredAttributes(devicePrint, confi [all...] |
| /forgerock/openam/openam-authentication/openam-auth-device-id/src/main/java/org/forgerock/openam/authentication/modules/deviceprint/ |
| H A D | ProfilePersister.java | 61 * @param devicePrint The device print. 63 void saveDevicePrint(Map<String, Object> devicePrint) { argument 64 saveDevicePrint(null, devicePrint); 70 * @param devicePrint The device print. 72 void saveDevicePrint(String name, Map<String, Object> devicePrint) { argument 90 profile.put("devicePrint", devicePrint);
|