Home
last modified time | relevance | path

Searched refs:credential (Results 1 – 9 of 9) sorted by relevance

/cts/tests/tests/identity/src/android/security/identity/cts/
DDynamicAuthTest.java74 IdentityCredential credential = store.getCredentialByName(credentialName, in dynamicAuthTest() local
76 assertNotNull(credential); in dynamicAuthTest()
77 assertArrayEquals(new int[0], credential.getAuthenticationDataUsageCount()); in dynamicAuthTest()
79 credential.setAvailableAuthenticationKeys(5, 3); in dynamicAuthTest()
82 credential.getAuthenticationDataUsageCount()); in dynamicAuthTest()
88 ResultData rd = credential.getEntries( in dynamicAuthTest()
110 credential = store.getCredentialByName(credentialName, in dynamicAuthTest()
112 KeyPair ephemeralKeyPair = credential.createEphemeralKeyPair(); in dynamicAuthTest()
113 credential.setReaderEphemeralPublicKey(readerEphemeralKeyPair.getPublic()); in dynamicAuthTest()
119 rd = credential.getEntries( in dynamicAuthTest()
[all …]
DReaderAuthTest.java267 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 …]
DProvisioningTest.java395 IdentityCredential credential = store.getCredentialByName("test", in nonExistent() local
397 assertNull(credential); in nonExistent()
459 IdentityCredential credential = store.getCredentialByName("test", in testProvisionAndRetrieve() local
464 credential.getCredentialKeyCertificateChain(); in testProvisionAndRetrieve()
486 ResultData rd = credential.getEntries( in testProvisionAndRetrieve()
551 IdentityCredential credential = store.getCredentialByName("test", in testProvisionAndRetrieveMultipleTimes() local
555 credential.setAvailableAuthenticationKeys(5, 1); in testProvisionAndRetrieveMultipleTimes()
556 Collection<X509Certificate> authKeys = credential.getAuthKeysNeedingCertification(); in testProvisionAndRetrieveMultipleTimes()
559 credential.storeStaticAuthenticationData(authKey, staticAuthData); in testProvisionAndRetrieveMultipleTimes()
562 KeyPair ephemeralKeyPair = credential.createEphemeralKeyPair(); in testProvisionAndRetrieveMultipleTimes()
[all …]
DUserAuthTest.java273 IdentityCredential credential = store.getCredentialByName("test", in doTestUserAuth() local
275 assertNotNull(credential); in doTestUserAuth()
276 credential.setAvailableAuthenticationKeys(1, 10); in doTestUserAuth()
277 Collection<X509Certificate> dynAuthKeyCerts = credential.getAuthKeysNeedingCertification(); in doTestUserAuth()
278 credential.storeStaticAuthenticationData(dynAuthKeyCerts.iterator().next(), new byte[0]); in doTestUserAuth()
298 rd = credential.getEntries( in doTestUserAuth()
329 credential = store.getCredentialByName("test", in doTestUserAuth()
331 assertNotNull(credential); in doTestUserAuth()
332 rd = credential.getEntries(Util.createItemsRequest(entriesToRequest, null), in doTestUserAuth()
362 credential = store.getCredentialByName("test", in doTestUserAuth()
[all …]
DEphemeralKeyTest.java73 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/cts/
DPpsMoParserTest.java87 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 …]
DConfigParserTest.java78 Credential credential = new Credential(); in generateConfigurationFromProfile() local
79 credential.setRealm("shaken.stirred.com"); in generateConfigurationFromProfile()
85 credential.setUserCredential(userCredential); in generateConfigurationFromProfile()
91 credential.setCertCredential(certCredential); in generateConfigurationFromProfile()
95 credential.setSimCredential(simCredential); in generateConfigurationFromProfile()
96 credential.setCaCertificate(FakeKeys.CA_CERT0); in generateConfigurationFromProfile()
97 config.setCredential(credential); in generateConfigurationFromProfile()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/security/
DIdentityCredentialAuthentication.java176 IdentityCredential credential = store.getCredentialByName("test", in provisionFoo() local
178 credential.setAvailableAuthenticationKeys(1, 10); in provisionFoo()
179 Collection<X509Certificate> dynAuthKeyCerts = credential.getAuthKeysNeedingCertification(); in provisionFoo()
180 credential.storeStaticAuthenticationData(dynAuthKeyCerts.iterator().next(), new byte[0]); in provisionFoo()
183 private boolean getFooAndCheckNotRetrievable(IdentityCredential credential) throws Exception { in getFooAndCheckNotRetrievable() argument
187 ResultData rd = credential.getEntries( in getFooAndCheckNotRetrievable()
198 private boolean getFooAndCheckRetrievable(IdentityCredential credential) throws Exception { in getFooAndCheckRetrievable() argument
202 ResultData rd = credential.getEntries( in getFooAndCheckRetrievable()
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
DBaseDevicePolicyTest.java978 protected void verifyUserCredential(String credential, int userId) in verifyUserCredential() argument
980 String commandOutput = verifyUserCredentialCommandOutput(credential, userId); in verifyUserCredential()
993 protected boolean verifyUserCredentialIsCorrect(String credential, int userId) in verifyUserCredentialIsCorrect() argument
995 String commandOutput = verifyUserCredentialCommandOutput(credential, userId); in verifyUserCredentialIsCorrect()
1007 protected String verifyUserCredentialCommandOutput(String credential, int userId) in verifyUserCredentialCommandOutput() argument
1009 final String credentialArgument = (credential == null || credential.isEmpty()) in verifyUserCredentialCommandOutput()
1010 ? "" : ("--old " + credential); in verifyUserCredentialCommandOutput()