/packages/modules/Wifi/service/java/com/android/server/wifi/hotspot2/ |
D | PasspointXmlUtils.java | 376 Credential.UserCredential userCredential) throws XmlPullParserException, IOException { in serializeUserCredential() argument 377 if (userCredential == null) { in serializeUserCredential() 381 XmlUtil.writeNextValue(out, XML_TAG_USERNAME, userCredential.getUsername()); in serializeUserCredential() 382 XmlUtil.writeNextValue(out, XML_TAG_PASSWORD, userCredential.getPassword()); in serializeUserCredential() 383 XmlUtil.writeNextValue(out, XML_TAG_MACHINE_MANAGED, userCredential.getMachineManaged()); in serializeUserCredential() 384 XmlUtil.writeNextValue(out, XML_TAG_SOFT_TOKEN_APP, userCredential.getSoftTokenApp()); in serializeUserCredential() 385 XmlUtil.writeNextValue(out, XML_TAG_ABLE_TO_SHARE, userCredential.getAbleToShare()); in serializeUserCredential() 386 XmlUtil.writeNextValue(out, XML_TAG_EAP_TYPE, userCredential.getEapType()); in serializeUserCredential() 388 userCredential.getNonEapInnerMethod()); in serializeUserCredential() 693 Credential.UserCredential userCredential = new Credential.UserCredential(); in deserializeUserCredential() local [all …]
|
D | PasspointProvider.java | 1022 Credential.UserCredential userCredential = new Credential.UserCredential(); in buildUserCredentialFromEnterpriseConfig() local 1023 userCredential.setEapType(EAPConstants.EAP_TTLS); in buildUserCredentialFromEnterpriseConfig() 1029 userCredential.setUsername(config.getIdentity()); in buildUserCredentialFromEnterpriseConfig() 1038 userCredential.setPassword(encodedPassword); in buildUserCredentialFromEnterpriseConfig() 1042 userCredential.setNonEapInnerMethod(Credential.UserCredential.AUTH_METHOD_PAP); in buildUserCredentialFromEnterpriseConfig() 1045 userCredential.setNonEapInnerMethod(Credential.UserCredential.AUTH_METHOD_MSCHAP); in buildUserCredentialFromEnterpriseConfig() 1048 userCredential.setNonEapInnerMethod(Credential.UserCredential.AUTH_METHOD_MSCHAPV2); in buildUserCredentialFromEnterpriseConfig() 1054 return userCredential; in buildUserCredentialFromEnterpriseConfig()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/ |
D | PasspointXmlUtilsTest.java | 125 Credential.UserCredential userCredential = new Credential.UserCredential(); in createFullPasspointConfiguration() local 126 userCredential.setUsername("james"); in createFullPasspointConfiguration() 127 userCredential.setPassword("Ym9uZDAwNw=="); in createFullPasspointConfiguration() 128 userCredential.setMachineManaged(true); in createFullPasspointConfiguration() 129 userCredential.setSoftTokenApp("TestApp"); in createFullPasspointConfiguration() 130 userCredential.setAbleToShare(true); in createFullPasspointConfiguration() 131 userCredential.setEapType(21); in createFullPasspointConfiguration() 132 userCredential.setNonEapInnerMethod("MS-CHAP-V2"); in createFullPasspointConfiguration() 133 credential.setUserCredential(userCredential); in createFullPasspointConfiguration()
|
D | PasspointConfigUserStoreDataTest.java | 158 Credential.UserCredential userCredential = new Credential.UserCredential(); in createFullPasspointConfiguration() local 159 userCredential.setUsername("james"); in createFullPasspointConfiguration() 160 userCredential.setPassword("Ym9uZDAwNw=="); in createFullPasspointConfiguration() 161 userCredential.setMachineManaged(true); in createFullPasspointConfiguration() 162 userCredential.setSoftTokenApp("TestApp"); in createFullPasspointConfiguration() 163 userCredential.setAbleToShare(true); in createFullPasspointConfiguration() 164 userCredential.setEapType(21); in createFullPasspointConfiguration() 165 userCredential.setNonEapInnerMethod("MS-CHAP-V2"); in createFullPasspointConfiguration() 166 credential.setUserCredential(userCredential); in createFullPasspointConfiguration()
|
D | PasspointProviderTest.java | 281 Credential.UserCredential userCredential = new Credential.UserCredential(); in generateTestPasspointConfiguration() local 282 userCredential.setEapType(EAPConstants.EAP_TTLS); in generateTestPasspointConfiguration() 283 userCredential.setNonEapInnerMethod(Credential.UserCredential.AUTH_METHOD_MSCHAPV2); in generateTestPasspointConfiguration() 284 userCredential.setUsername(TEST_USERNAME); in generateTestPasspointConfiguration() 285 userCredential.setPassword(encodedPasswordStr); in generateTestPasspointConfiguration() 289 credential.setUserCredential(userCredential); in generateTestPasspointConfiguration() 361 Credential.UserCredential userCredential = credential.getUserCredential(); in verifyWifiConfigWithTestData() local 363 byte[] pwOctets = Base64.decode(userCredential.getPassword(), Base64.DEFAULT); in verifyWifiConfigWithTestData() 366 decodedPassword = userCredential.getPassword(); in verifyWifiConfigWithTestData() 372 switch (userCredential.getNonEapInnerMethod()) { in verifyWifiConfigWithTestData() [all …]
|
D | PasspointManagerTest.java | 360 Credential.UserCredential userCredential = new Credential.UserCredential(); in createTestConfigWithUserCredentialAndRealm() local 361 userCredential.setUsername("username"); in createTestConfigWithUserCredentialAndRealm() 362 userCredential.setPassword("password"); in createTestConfigWithUserCredentialAndRealm() 363 userCredential.setEapType(EAPConstants.EAP_TTLS); in createTestConfigWithUserCredentialAndRealm() 364 userCredential.setNonEapInnerMethod(Credential.UserCredential.AUTH_METHOD_MSCHAP); in createTestConfigWithUserCredentialAndRealm() 365 credential.setUserCredential(userCredential); in createTestConfigWithUserCredentialAndRealm() 1689 Credential.UserCredential userCredential = new Credential.UserCredential(); in addLegacyPasspointConfigWithUserCredential() local 1690 userCredential.setUsername(username); in addLegacyPasspointConfigWithUserCredential() 1691 userCredential.setPassword(encodedPasswordStr); in addLegacyPasspointConfigWithUserCredential() 1692 userCredential.setEapType(EAPConstants.EAP_TTLS); in addLegacyPasspointConfigWithUserCredential() [all …]
|
/packages/modules/Wifi/framework/tests/src/android/net/wifi/hotspot2/omadm/ |
D | PpsMoParserTest.java | 147 Credential.UserCredential userCredential = new Credential.UserCredential(); in generateConfigurationFromPPSMOTree() local 148 userCredential.setUsername("james"); in generateConfigurationFromPPSMOTree() 149 userCredential.setPassword("Ym9uZDAwNw=="); in generateConfigurationFromPPSMOTree() 150 userCredential.setMachineManaged(true); in generateConfigurationFromPPSMOTree() 151 userCredential.setSoftTokenApp("TestApp"); in generateConfigurationFromPPSMOTree() 152 userCredential.setAbleToShare(true); in generateConfigurationFromPPSMOTree() 153 userCredential.setEapType(21); in generateConfigurationFromPPSMOTree() 154 userCredential.setNonEapInnerMethod("MS-CHAP-V2"); in generateConfigurationFromPPSMOTree() 155 credential.setUserCredential(userCredential); in generateConfigurationFromPPSMOTree()
|
/packages/modules/Wifi/framework/tests/src/android/net/wifi/hotspot2/ |
D | ConfigParserTest.java | 98 Credential.UserCredential userCredential = new Credential.UserCredential(); in generateConfigurationFromProfile() local 99 userCredential.setUsername("user"); in generateConfigurationFromProfile() 100 userCredential.setPassword("cGFzc3dvcmQ="); in generateConfigurationFromProfile() 101 userCredential.setEapType(21); in generateConfigurationFromProfile() 102 userCredential.setNonEapInnerMethod("MS-CHAP-V2"); in generateConfigurationFromProfile() 103 credential.setUserCredential(userCredential); in generateConfigurationFromProfile()
|
/packages/modules/Wifi/framework/java/android/net/wifi/hotspot2/pps/ |
D | Credential.java | 435 UserCredential userCredential = new UserCredential(); 436 userCredential.setUsername(in.readString()); 437 userCredential.setPassword(in.readString()); 438 userCredential.setMachineManaged(in.readInt() != 0); 439 userCredential.setSoftTokenApp(in.readString()); 440 userCredential.setAbleToShare(in.readInt() != 0); 441 userCredential.setEapType(in.readInt()); 442 userCredential.setNonEapInnerMethod(in.readString()); 443 return userCredential; 468 public void setUserCredential(UserCredential userCredential) { in setUserCredential() argument [all …]
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | NetworkSuggestionStoreDataTest.java | 536 Credential.UserCredential userCredential = new Credential.UserCredential(); in createTestConfigWithUserCredential() local 537 userCredential.setUsername("username"); in createTestConfigWithUserCredential() 538 userCredential.setPassword("password"); in createTestConfigWithUserCredential() 539 userCredential.setEapType(EAPConstants.EAP_TTLS); in createTestConfigWithUserCredential() 540 userCredential.setNonEapInnerMethod(Credential.UserCredential.AUTH_METHOD_MSCHAP); in createTestConfigWithUserCredential() 541 credential.setUserCredential(userCredential); in createTestConfigWithUserCredential()
|
D | WifiNetworkSuggestionsManagerTest.java | 4876 Credential.UserCredential userCredential = new Credential.UserCredential(); in createTestConfigWithUserCredential() local 4877 userCredential.setUsername("username"); in createTestConfigWithUserCredential() 4878 userCredential.setPassword("password"); in createTestConfigWithUserCredential() 4879 userCredential.setEapType(EAPConstants.EAP_TTLS); in createTestConfigWithUserCredential() 4880 userCredential.setNonEapInnerMethod(Credential.UserCredential.AUTH_METHOD_MSCHAP); in createTestConfigWithUserCredential() 4881 credential.setUserCredential(userCredential); in createTestConfigWithUserCredential()
|