/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/service/tests/wifitests/src/com/android/server/wifi/hotspot2/ |
D | PasspointXmlUtilsTest.java | 126 Credential.UserCredential userCredential = new Credential.UserCredential(); in createFullPasspointConfiguration() local 127 userCredential.setUsername("james"); in createFullPasspointConfiguration() 128 userCredential.setPassword("Ym9uZDAwNw=="); in createFullPasspointConfiguration() 129 userCredential.setMachineManaged(true); in createFullPasspointConfiguration() 130 userCredential.setSoftTokenApp("TestApp"); in createFullPasspointConfiguration() 131 userCredential.setAbleToShare(true); in createFullPasspointConfiguration() 132 userCredential.setEapType(21); in createFullPasspointConfiguration() 133 userCredential.setNonEapInnerMethod("MS-CHAP-V2"); in createFullPasspointConfiguration() 134 credential.setUserCredential(userCredential); in createFullPasspointConfiguration()
|
D | PasspointConfigUserStoreDataTest.java | 159 Credential.UserCredential userCredential = new Credential.UserCredential(); in createFullPasspointConfiguration() local 160 userCredential.setUsername("james"); in createFullPasspointConfiguration() 161 userCredential.setPassword("Ym9uZDAwNw=="); in createFullPasspointConfiguration() 162 userCredential.setMachineManaged(true); in createFullPasspointConfiguration() 163 userCredential.setSoftTokenApp("TestApp"); in createFullPasspointConfiguration() 164 userCredential.setAbleToShare(true); in createFullPasspointConfiguration() 165 userCredential.setEapType(21); in createFullPasspointConfiguration() 166 userCredential.setNonEapInnerMethod("MS-CHAP-V2"); in createFullPasspointConfiguration() 167 credential.setUserCredential(userCredential); in createFullPasspointConfiguration()
|
D | PasspointProviderTest.java | 290 Credential.UserCredential userCredential = new Credential.UserCredential(); in generateTestPasspointConfiguration() local 291 userCredential.setEapType(EAPConstants.EAP_TTLS); in generateTestPasspointConfiguration() 292 userCredential.setNonEapInnerMethod(Credential.UserCredential.AUTH_METHOD_MSCHAPV2); in generateTestPasspointConfiguration() 293 userCredential.setUsername(TEST_USERNAME); in generateTestPasspointConfiguration() 294 userCredential.setPassword(encodedPasswordStr); in generateTestPasspointConfiguration() 298 credential.setUserCredential(userCredential); in generateTestPasspointConfiguration() 370 Credential.UserCredential userCredential = credential.getUserCredential(); in verifyWifiConfigWithTestData() local 372 byte[] pwOctets = Base64.decode(userCredential.getPassword(), Base64.DEFAULT); in verifyWifiConfigWithTestData() 375 decodedPassword = userCredential.getPassword(); in verifyWifiConfigWithTestData() 381 switch (userCredential.getNonEapInnerMethod()) { in verifyWifiConfigWithTestData() [all …]
|
D | PasspointManagerTest.java | 389 Credential.UserCredential userCredential = new Credential.UserCredential(); in createTestConfigWithUserCredentialAndRealm() local 390 userCredential.setUsername("username"); in createTestConfigWithUserCredentialAndRealm() 391 userCredential.setPassword("password"); in createTestConfigWithUserCredentialAndRealm() 392 userCredential.setEapType(EAPConstants.EAP_TTLS); in createTestConfigWithUserCredentialAndRealm() 393 userCredential.setNonEapInnerMethod(Credential.UserCredential.AUTH_METHOD_MSCHAP); in createTestConfigWithUserCredentialAndRealm() 394 credential.setUserCredential(userCredential); in createTestConfigWithUserCredentialAndRealm() 1720 Credential.UserCredential userCredential = new Credential.UserCredential(); in addLegacyPasspointConfigWithUserCredential() local 1721 userCredential.setUsername(username); in addLegacyPasspointConfigWithUserCredential() 1722 userCredential.setPassword(encodedPasswordStr); in addLegacyPasspointConfigWithUserCredential() 1723 userCredential.setEapType(EAPConstants.EAP_TTLS); in addLegacyPasspointConfigWithUserCredential() [all …]
|
/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()
|
D | PasspointConfigurationTest.java | 700 Credential.UserCredential userCredential = new Credential.UserCredential(); in testValidatePasspointConfig() local 701 userCredential.setUsername("username"); in testValidatePasspointConfig() 702 userCredential.setPassword("password"); in testValidatePasspointConfig() 703 userCredential.setEapType(21); in testValidatePasspointConfig() 704 userCredential.setNonEapInnerMethod("MS-CHAP"); in testValidatePasspointConfig() 705 credential.setUserCredential(userCredential); in testValidatePasspointConfig()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/hotspot2/ |
D | PasspointXmlUtils.java | 397 Credential.UserCredential userCredential) throws XmlPullParserException, IOException { in serializeUserCredential() argument 398 if (userCredential == null) { in serializeUserCredential() 402 XmlUtil.writeNextValue(out, XML_TAG_USERNAME, userCredential.getUsername()); in serializeUserCredential() 403 XmlUtil.writeNextValue(out, XML_TAG_PASSWORD, userCredential.getPassword()); in serializeUserCredential() 404 XmlUtil.writeNextValue(out, XML_TAG_MACHINE_MANAGED, userCredential.getMachineManaged()); in serializeUserCredential() 405 XmlUtil.writeNextValue(out, XML_TAG_SOFT_TOKEN_APP, userCredential.getSoftTokenApp()); in serializeUserCredential() 406 XmlUtil.writeNextValue(out, XML_TAG_ABLE_TO_SHARE, userCredential.getAbleToShare()); in serializeUserCredential() 407 XmlUtil.writeNextValue(out, XML_TAG_EAP_TYPE, userCredential.getEapType()); in serializeUserCredential() 409 userCredential.getNonEapInnerMethod()); in serializeUserCredential() 738 Credential.UserCredential userCredential = new Credential.UserCredential(); in deserializeUserCredential() local [all …]
|
D | PasspointProvider.java | 1090 Credential.UserCredential userCredential = new Credential.UserCredential(); in buildUserCredentialFromEnterpriseConfig() local 1091 userCredential.setEapType(EAPConstants.EAP_TTLS); in buildUserCredentialFromEnterpriseConfig() 1097 userCredential.setUsername(config.getIdentity()); in buildUserCredentialFromEnterpriseConfig() 1106 userCredential.setPassword(encodedPassword); in buildUserCredentialFromEnterpriseConfig() 1110 userCredential.setNonEapInnerMethod(Credential.UserCredential.AUTH_METHOD_PAP); in buildUserCredentialFromEnterpriseConfig() 1113 userCredential.setNonEapInnerMethod(Credential.UserCredential.AUTH_METHOD_MSCHAP); in buildUserCredentialFromEnterpriseConfig() 1116 userCredential.setNonEapInnerMethod(Credential.UserCredential.AUTH_METHOD_MSCHAPV2); in buildUserCredentialFromEnterpriseConfig() 1122 return userCredential; in buildUserCredentialFromEnterpriseConfig()
|
/packages/modules/Wifi/framework/java/android/net/wifi/hotspot2/pps/ |
D | Credential.java | 445 UserCredential userCredential = new UserCredential(); 446 userCredential.setUsername(in.readString()); 447 userCredential.setPassword(in.readString()); 448 userCredential.setMachineManaged(in.readInt() != 0); 449 userCredential.setSoftTokenApp(in.readString()); 450 userCredential.setAbleToShare(in.readInt() != 0); 451 userCredential.setEapType(in.readInt()); 452 userCredential.setNonEapInnerMethod(in.readString()); 453 return userCredential; 478 public void setUserCredential(UserCredential userCredential) { in setUserCredential() argument [all …]
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | NetworkSuggestionStoreDataTest.java | 532 Credential.UserCredential userCredential = new Credential.UserCredential(); in createTestConfigWithUserCredential() local 533 userCredential.setUsername("username"); in createTestConfigWithUserCredential() 534 userCredential.setPassword("password"); in createTestConfigWithUserCredential() 535 userCredential.setEapType(EAPConstants.EAP_TTLS); in createTestConfigWithUserCredential() 536 userCredential.setNonEapInnerMethod(Credential.UserCredential.AUTH_METHOD_MSCHAP); in createTestConfigWithUserCredential() 537 credential.setUserCredential(userCredential); in createTestConfigWithUserCredential()
|
D | WifiNetworkSuggestionsManagerTest.java | 5098 Credential.UserCredential userCredential = new Credential.UserCredential(); in createTestConfigWithUserCredential() local 5099 userCredential.setUsername("username"); in createTestConfigWithUserCredential() 5100 userCredential.setPassword("password"); in createTestConfigWithUserCredential() 5101 userCredential.setEapType(EAPConstants.EAP_TTLS); in createTestConfigWithUserCredential() 5102 userCredential.setNonEapInnerMethod(Credential.UserCredential.AUTH_METHOD_MSCHAP); in createTestConfigWithUserCredential() 5103 credential.setUserCredential(userCredential); in createTestConfigWithUserCredential()
|