/cts/tests/tests/identity/src/android/security/identity/cts/ |
D | DynamicAuthTest.java | 79 IdentityCredential credential = store.getCredentialByName(credentialName, in dynamicAuthTest() local 81 assertNotNull(credential); in dynamicAuthTest() 82 assertArrayEquals(new int[0], credential.getAuthenticationDataUsageCount()); in dynamicAuthTest() 84 credential.setAvailableAuthenticationKeys(5, 3); in dynamicAuthTest() 87 credential.getAuthenticationDataUsageCount()); in dynamicAuthTest() 93 ResultData rd = credential.getEntries( in dynamicAuthTest() 115 credential = store.getCredentialByName(credentialName, in dynamicAuthTest() 117 KeyPair ephemeralKeyPair = credential.createEphemeralKeyPair(); in dynamicAuthTest() 118 credential.setReaderEphemeralPublicKey(readerEphemeralKeyPair.getPublic()); in dynamicAuthTest() 124 rd = credential.getEntries( in dynamicAuthTest() [all …]
|
D | ReaderAuthTest.java | 268 IdentityCredential credential = store.getCredentialByName(credentialName, in readerAuth() local 270 assertNotNull(credential); in readerAuth() 271 credential.setAvailableAuthenticationKeys(1, 10); in readerAuth() 272 Collection<X509Certificate> dynAuthKeyCerts = credential.getAuthKeysNeedingCertification(); in readerAuth() 273 credential.storeStaticAuthenticationData(dynAuthKeyCerts.iterator().next(), new byte[0]); in readerAuth() 274 KeyPair eKeyPair = credential.createEphemeralKeyPair(); in readerAuth() 292 rd = retrieveForReader(credential, eKeyPair, readerKeyPairA, certChainForA, requestMessage, in readerAuth() 322 credential = store.getCredentialByName(credentialName, in readerAuth() 324 eKeyPair = credential.createEphemeralKeyPair(); in readerAuth() 325 rd = retrieveForReader(credential, eKeyPair, readerKeyPairA, certChainForA, in readerAuth() [all …]
|
D | ProvisioningTest.java | 406 IdentityCredential credential = store.getCredentialByName("test", in nonExistent() local 408 assertNull(credential); in nonExistent() 478 IdentityCredential credential = store.getCredentialByName("test", in deleteCredential() local 480 assertNotNull(credential); in deleteCredential() 495 byte[] proofOfDeletionSignature = credential.delete(challenge); in deleteCredential() 531 IdentityCredential credential = store.getCredentialByName("test", in proofOfOwnership() local 533 assertNotNull(credential); in proofOfOwnership() 548 byte[] proofOfOwnershipSignature = credential.proveOwnership(challenge); in proofOfOwnership() 579 IdentityCredential credential = store.getCredentialByName("test", in testProvisionAndRetrieve() local 584 credential.getCredentialKeyCertificateChain(); in testProvisionAndRetrieve() [all …]
|
D | UserAuthTest.java | 202 IdentityCredential credential = store.getCredentialByName("test", in doTestUserAuth() local 204 assertNotNull(credential); in doTestUserAuth() 205 credential.setAvailableAuthenticationKeys(1, 10); in doTestUserAuth() 206 Collection<X509Certificate> dynAuthKeyCerts = credential.getAuthKeysNeedingCertification(); in doTestUserAuth() 207 credential.storeStaticAuthenticationData(dynAuthKeyCerts.iterator().next(), new byte[0]); in doTestUserAuth() 227 rd = credential.getEntries( in doTestUserAuth() 258 credential = store.getCredentialByName("test", in doTestUserAuth() 260 assertNotNull(credential); in doTestUserAuth() 261 rd = credential.getEntries(Util.createItemsRequest(entriesToRequest, null), in doTestUserAuth() 291 credential = store.getCredentialByName("test", in doTestUserAuth() [all …]
|
D | EphemeralKeyTest.java | 74 IdentityCredential credential = store.getCredentialByName(credentialName, in createEphemeralKey() local 76 assertNotNull(credential); in createEphemeralKey() 79 KeyPair ephemeralKeyPair = credential.createEphemeralKeyPair(); in createEphemeralKey() 89 credential.setReaderEphemeralPublicKey(reader.getEphemeralPublicKey()); in createEphemeralKey() 102 byte[] decryptedMessageToHolder = credential.decryptMessageFromReader( in createEphemeralKey() 108 byte[] encryptedMessageToReader = credential.encryptMessageToReader(messageToReader); in createEphemeralKey()
|
D | MultiDocumentPresentationTest.java | 72 IdentityCredential credential = store.getCredentialByName( in getAuthKeyUsageCount() local 75 return credential.getAuthenticationDataUsageCount(); in getAuthKeyUsageCount() 80 IdentityCredential credential = store.getCredentialByName( in createAuthKeys() local 83 credential.setAvailableAuthenticationKeys(5, 3); in createAuthKeys() 84 Collection<X509Certificate> certificates = credential.getAuthKeysNeedingCertification(); in createAuthKeys() 86 credential.storeStaticAuthenticationData(certificate, new byte[]{42, 43, 44}); in createAuthKeys()
|
D | NoSessionEncryptionTest.java | 72 IdentityCredential credential = store.getCredentialByName("credential1", in noSessionEncryption() local 74 credential.setAvailableAuthenticationKeys(5, 3); in noSessionEncryption() 75 Collection<X509Certificate> certificates = credential.getAuthKeysNeedingCertification(); in noSessionEncryption() 77 credential.storeStaticAuthenticationData(certificate, new byte[]{42, 43, 44}); in noSessionEncryption()
|
/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 | WifiHotspot2Test.java | 224 Credential credential = createCredentialWithSimCredential("123456*", 18 /* EAP_SIM */); in testCredentialCopyConstructor() local 225 Credential copyOfCredential = new Credential(credential); in testCredentialCopyConstructor() 226 assertEquals(copyOfCredential, credential); in testCredentialCopyConstructor() 298 Credential credential = new Credential(); in testCredentialGetCertificate() local 299 credential.setCaCertificate(FakeKeys.CA_CERT0); in testCredentialGetCertificate() 301 assertEquals(FakeKeys.CA_CERT0, credential.getCaCertificate()); in testCredentialGetCertificate() 315 Credential credential = new Credential(); in testCredentialClientCertificateChain() local 317 credential.setClientCertificateChain(certificates); in testCredentialClientCertificateChain() 319 assertTrue(Arrays.equals(certificates, credential.getClientCertificateChain())); in testCredentialClientCertificateChain() 334 Credential credential = new Credential(); in testCredentialSetGetClientPrivateKey() local [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()
|
/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()
|
D | IdentityCredentialAuthenticationMultiDocument.java | 161 IdentityCredential credential = store.getCredentialByName(credentialName, in provisionCredential() local 163 credential.setAvailableAuthenticationKeys(1, 10); in provisionCredential() 164 Collection<X509Certificate> dynAuthKeyCerts = credential.getAuthKeysNeedingCertification(); in provisionCredential() 165 credential.storeStaticAuthenticationData(dynAuthKeyCerts.iterator().next(), new byte[0]); in provisionCredential()
|
/cts/tests/autofillservice/src/android/autofillservice/cts/activities/ |
D | LoginCredentialMixedActivity.java | 55 androidx.credentials.Credential credential = androidx.credentials.Credential.createFrom( in onCreate() 57 if (credential instanceof PasswordCredential) { in onCreate() 58 PasswordCredential pwCredential = (PasswordCredential) credential; in onCreate()
|
/cts/tests/autofillservice/src/android/autofillservice/cts/credman/ |
D | CtsGetPasswordActivity.java | 43 PasswordCredential credential = new PasswordCredential(username, "defaultPassword"); in onCreate() local 45 result, new GetCredentialResponse(credential)); in onCreate()
|
/cts/tests/tests/app/src/android/app/cts/ |
D | KeyguardWeakEscrowTokenTest.java | 253 private static void updateLockCredential(String oldCredential, String credential) in updateLockCredential() argument 256 String.format("locksettings set-pin --old %s %s", oldCredential, credential)); in updateLockCredential() 259 private static void setLockCredential(String credential) throws IOException { in setLockCredential() argument 261 + credential); in setLockCredential() local 264 private static void verifyCredential(String credential) throws IOException { in verifyCredential() argument 266 + credential); in verifyCredential() local
|
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/ |
D | BaseDevicePolicyTest.java | 1145 protected void verifyUserCredential(String credential, int userId) in verifyUserCredential() argument 1147 String commandOutput = verifyUserCredentialCommandOutput(credential, userId); in verifyUserCredential() 1160 protected boolean verifyUserCredentialIsCorrect(String credential, int userId) in verifyUserCredentialIsCorrect() argument 1162 String commandOutput = verifyUserCredentialCommandOutput(credential, userId); in verifyUserCredentialIsCorrect() 1174 protected String verifyUserCredentialCommandOutput(String credential, int userId) in verifyUserCredentialCommandOutput() argument 1176 final String credentialArgument = (credential == null || credential.isEmpty()) in verifyUserCredentialCommandOutput() 1177 ? "" : ("--old " + credential); in verifyUserCredentialCommandOutput()
|
/cts/tests/tests/identity/ |
D | Android.bp | 36 "identity-credential-util",
|
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/users/ |
D | UserReference.java | 1060 public boolean lockCredentialEquals(String credential) { in lockCredentialEquals() argument 1065 .addOperand(credential.isEmpty() ? "" : "--old "+credential) in lockCredentialEquals()
|
/cts/common/device-side/bedstead/remoteframeworkclasses/java/apis/ |
D | current.txt | 10716 field public static final String CREDENTIAL_SERVICE = "credential";
|