/cts/tests/tests/identity/src/android/security/identity/cts/ |
D | DynamicAuthTest.java | 76 IdentityCredential credential = store.getCredentialByName(credentialName, in dynamicAuthTest() local 78 assertNotNull(credential); in dynamicAuthTest() 79 assertArrayEquals(new int[0], credential.getAuthenticationDataUsageCount()); in dynamicAuthTest() 81 credential.setAvailableAuthenticationKeys(5, 3); in dynamicAuthTest() 84 credential.getAuthenticationDataUsageCount()); in dynamicAuthTest() 90 ResultData rd = credential.getEntries( in dynamicAuthTest() 112 credential = store.getCredentialByName(credentialName, in dynamicAuthTest() 114 KeyPair ephemeralKeyPair = credential.createEphemeralKeyPair(); in dynamicAuthTest() 115 credential.setReaderEphemeralPublicKey(readerEphemeralKeyPair.getPublic()); in dynamicAuthTest() 121 rd = credential.getEntries( in dynamicAuthTest() [all …]
|
D | ReaderAuthTest.java | 267 IdentityCredential credential = store.getCredentialByName(credentialName, in readerAuth() local 269 assertNotNull(credential); in readerAuth() 270 credential.setAvailableAuthenticationKeys(1, 10); in readerAuth() 271 Collection<X509Certificate> dynAuthKeyCerts = credential.getAuthKeysNeedingCertification(); in readerAuth() 272 credential.storeStaticAuthenticationData(dynAuthKeyCerts.iterator().next(), new byte[0]); in readerAuth() 273 KeyPair eKeyPair = credential.createEphemeralKeyPair(); in readerAuth() 291 rd = retrieveForReader(credential, eKeyPair, readerKeyPairA, certChainForA, requestMessage, in readerAuth() 321 credential = store.getCredentialByName(credentialName, in readerAuth() 323 eKeyPair = credential.createEphemeralKeyPair(); in readerAuth() 324 rd = retrieveForReader(credential, eKeyPair, readerKeyPairA, certChainForA, in readerAuth() [all …]
|
D | ProvisioningTest.java | 396 IdentityCredential credential = store.getCredentialByName("test", in nonExistent() local 398 assertNull(credential); in nonExistent() 468 IdentityCredential credential = store.getCredentialByName("test", in deleteCredential() local 470 assertNotNull(credential); in deleteCredential() 473 byte[] proofOfDeletionSignature = credential.delete(challenge); in deleteCredential() 509 IdentityCredential credential = store.getCredentialByName("test", in proofOfOwnership() local 511 assertNotNull(credential); in proofOfOwnership() 514 byte[] proofOfOwnershipSignature = credential.proveOwnership(challenge); in proofOfOwnership() 546 IdentityCredential credential = store.getCredentialByName("test", in testProvisionAndRetrieve() local 551 credential.getCredentialKeyCertificateChain(); in testProvisionAndRetrieve() [all …]
|
D | UserAuthTest.java | 285 IdentityCredential credential = store.getCredentialByName("test", in doTestUserAuth() local 287 assertNotNull(credential); in doTestUserAuth() 288 credential.setAvailableAuthenticationKeys(1, 10); in doTestUserAuth() 289 Collection<X509Certificate> dynAuthKeyCerts = credential.getAuthKeysNeedingCertification(); in doTestUserAuth() 290 credential.storeStaticAuthenticationData(dynAuthKeyCerts.iterator().next(), new byte[0]); in doTestUserAuth() 310 rd = credential.getEntries( in doTestUserAuth() 341 credential = store.getCredentialByName("test", in doTestUserAuth() 343 assertNotNull(credential); in doTestUserAuth() 344 rd = credential.getEntries(Util.createItemsRequest(entriesToRequest, null), in doTestUserAuth() 374 credential = store.getCredentialByName("test", in doTestUserAuth() [all …]
|
D | EphemeralKeyTest.java | 73 IdentityCredential credential = store.getCredentialByName(credentialName, in createEphemeralKey() local 75 assertNotNull(credential); in createEphemeralKey() 78 KeyPair ephemeralKeyPair = credential.createEphemeralKeyPair(); in createEphemeralKey() 88 credential.setReaderEphemeralPublicKey(reader.getEphemeralPublicKey()); in createEphemeralKey() 101 byte[] decryptedMessageToHolder = credential.decryptMessageFromReader( in createEphemeralKey() 107 byte[] encryptedMessageToReader = credential.encryptMessageToReader(messageToReader); in createEphemeralKey()
|
/cts/tests/tests/wifi/src/android/net/wifi/passpoint/cts/ |
D | PasspointConfigurationTest.java | 106 Credential credential = config2.getCredential(); in testUniqueIdDifferentSimCredential() local 107 credential.setRealm("realm2.example.com"); in testUniqueIdDifferentSimCredential() 108 credential.getSimCredential().setImsi("350460*"); in testUniqueIdDifferentSimCredential() 109 config2.setCredential(credential); in testUniqueIdDifferentSimCredential() 123 Credential credential = config2.getCredential(); in testUniqueIdDifferentRealm() local 124 credential.setRealm("realm2.example.com"); in testUniqueIdDifferentRealm() 125 config2.setCredential(credential); in testUniqueIdDifferentRealm() 136 Credential credential = createCredentialWithUserCredential("user", "passwd"); in testUniqueIdSameUserInUserCredential() local 137 config1.setCredential(credential); in testUniqueIdSameUserInUserCredential() 141 credential = createCredentialWithUserCredential("user", "newpasswd"); in testUniqueIdSameUserInUserCredential() [all …]
|
/cts/tests/tests/wifi/src/android/net/wifi/cts/ |
D | PpsMoParserTest.java | 87 Credential credential = new Credential(); in generateConfigurationFromPPSMOTree() local 88 credential.setRealm("shaken.stirred.com"); in generateConfigurationFromPPSMOTree() 89 assertEquals("shaken.stirred.com", credential.getRealm()); in generateConfigurationFromPPSMOTree() 99 credential.setUserCredential(userCredential); in generateConfigurationFromPPSMOTree() 100 assertEquals(userCredential, credential.getUserCredential()); in generateConfigurationFromPPSMOTree() 106 credential.setCertCredential(certCredential); in generateConfigurationFromPPSMOTree() 107 assertEquals(certCredential, credential.getCertCredential()); in generateConfigurationFromPPSMOTree() 113 credential.setSimCredential(simCredential); in generateConfigurationFromPPSMOTree() 114 assertEquals(simCredential, credential.getSimCredential()); in generateConfigurationFromPPSMOTree() 115 config.setCredential(credential); in generateConfigurationFromPPSMOTree() [all …]
|
D | ConfigParserTest.java | 83 Credential credential = new Credential(); in generateConfigurationFromProfile() local 84 credential.setRealm("shaken.stirred.com"); in generateConfigurationFromProfile() 90 credential.setUserCredential(userCredential); in generateConfigurationFromProfile() 96 credential.setCertCredential(certCredential); in generateConfigurationFromProfile() 100 credential.setSimCredential(simCredential); in generateConfigurationFromProfile() 101 credential.setCaCertificate(FakeKeys.CA_CERT0); in generateConfigurationFromProfile() 102 config.setCredential(credential); in generateConfigurationFromProfile()
|
D | WifiHotspot2Test.java | 219 Credential credential = createCredentialWithSimCredential("123456*", 18 /* EAP_SIM */); in testCredentialCopyConstructor() local 220 Credential copyOfCredential = new Credential(credential); in testCredentialCopyConstructor() 221 assertEquals(copyOfCredential, credential); in testCredentialCopyConstructor() 293 Credential credential = new Credential(); in testCredentialGetCertificate() local 294 credential.setCaCertificate(FakeKeys.CA_CERT0); in testCredentialGetCertificate() 296 assertEquals(FakeKeys.CA_CERT0, credential.getCaCertificate()); in testCredentialGetCertificate() 310 Credential credential = new Credential(); in testCredentialClientCertificateChain() local 312 credential.setClientCertificateChain(certificates); in testCredentialClientCertificateChain() 314 assertTrue(Arrays.equals(certificates, credential.getClientCertificateChain())); in testCredentialClientCertificateChain() 329 Credential credential = new Credential(); in testCredentialSetGetClientPrivateKey() local [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/security/ |
D | IdentityCredentialAuthentication.java | 132 IdentityCredential credential = store.getCredentialByName("test", in provisionFoo() local 134 credential.setAvailableAuthenticationKeys(1, 10); in provisionFoo() 135 Collection<X509Certificate> dynAuthKeyCerts = credential.getAuthKeysNeedingCertification(); in provisionFoo() 136 credential.storeStaticAuthenticationData(dynAuthKeyCerts.iterator().next(), new byte[0]); in provisionFoo() 139 private boolean getFooAndCheckNotRetrievable(IdentityCredential credential) throws Exception { in getFooAndCheckNotRetrievable() argument 143 ResultData rd = credential.getEntries( in getFooAndCheckNotRetrievable() 155 private boolean getFooAndCheckRetrievable(IdentityCredential credential) throws Exception { in getFooAndCheckRetrievable() argument 159 ResultData rd = credential.getEntries( in getFooAndCheckRetrievable()
|
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/ |
D | BaseDevicePolicyTest.java | 1133 protected void verifyUserCredential(String credential, int userId) in verifyUserCredential() argument 1135 String commandOutput = verifyUserCredentialCommandOutput(credential, userId); in verifyUserCredential() 1148 protected boolean verifyUserCredentialIsCorrect(String credential, int userId) in verifyUserCredentialIsCorrect() argument 1150 String commandOutput = verifyUserCredentialCommandOutput(credential, userId); in verifyUserCredentialIsCorrect() 1162 protected String verifyUserCredentialCommandOutput(String credential, int userId) in verifyUserCredentialCommandOutput() argument 1164 final String credentialArgument = (credential == null || credential.isEmpty()) in verifyUserCredentialCommandOutput() 1165 ? "" : ("--old " + credential); in verifyUserCredentialCommandOutput()
|