Home
last modified time | relevance | path

Searched refs:keyInfo (Results 1 – 4 of 4) sorted by relevance

/cts/tests/tests/keystore/src/android/keystore/cts/
DKeyPairGeneratorTest.java329 KeyInfo keyInfo = TestUtils.getKeyInfo(keyPair.getPrivate()); in testGenerateHonorsRequestedAuthorizations() local
330 assertEquals(purposes, keyInfo.getPurposes()); in testGenerateHonorsRequestedAuthorizations()
332 Arrays.asList(keyInfo.getBlockModes()), blockModes); in testGenerateHonorsRequestedAuthorizations()
335 new ArrayList<String>(Arrays.asList(keyInfo.getEncryptionPaddings())); in testGenerateHonorsRequestedAuthorizations()
342 new ArrayList<String>(Arrays.asList(keyInfo.getDigests())); in testGenerateHonorsRequestedAuthorizations()
347 MoreAsserts.assertEmpty(Arrays.asList(keyInfo.getSignaturePaddings())); in testGenerateHonorsRequestedAuthorizations()
348 assertEquals(keyValidityStart, keyInfo.getKeyValidityStart()); in testGenerateHonorsRequestedAuthorizations()
350 keyInfo.getKeyValidityForOriginationEnd()); in testGenerateHonorsRequestedAuthorizations()
352 keyInfo.getKeyValidityForConsumptionEnd()); in testGenerateHonorsRequestedAuthorizations()
353 assertFalse(keyInfo.isUserAuthenticationRequired()); in testGenerateHonorsRequestedAuthorizations()
[all …]
DSecretKeyFactoryTest.java123 KeyInfo keyInfo = (KeyInfo) keyFactory.getKeySpec(key, KeyInfo.class); in testGetKeySpecWithKeystoreKeyAndKeyInfoReflectsAllAuthorizations() local
124 assertEquals("test1", keyInfo.getKeystoreAlias()); in testGetKeySpecWithKeystoreKeyAndKeyInfoReflectsAllAuthorizations()
125 assertEquals(purposes, keyInfo.getPurposes()); in testGetKeySpecWithKeystoreKeyAndKeyInfoReflectsAllAuthorizations()
127 Arrays.asList(blockModes), keyInfo.getBlockModes()); in testGetKeySpecWithKeystoreKeyAndKeyInfoReflectsAllAuthorizations()
129 Arrays.asList(encryptionPaddings), keyInfo.getEncryptionPaddings()); in testGetKeySpecWithKeystoreKeyAndKeyInfoReflectsAllAuthorizations()
130 TestUtils.assertContentsInAnyOrder(Arrays.asList(digests), keyInfo.getDigests()); in testGetKeySpecWithKeystoreKeyAndKeyInfoReflectsAllAuthorizations()
131 MoreAsserts.assertEmpty(Arrays.asList(keyInfo.getSignaturePaddings())); in testGetKeySpecWithKeystoreKeyAndKeyInfoReflectsAllAuthorizations()
132 assertEquals(keyValidityStart, keyInfo.getKeyValidityStart()); in testGetKeySpecWithKeystoreKeyAndKeyInfoReflectsAllAuthorizations()
134 keyInfo.getKeyValidityForOriginationEnd()); in testGetKeySpecWithKeystoreKeyAndKeyInfoReflectsAllAuthorizations()
136 keyInfo.getKeyValidityForConsumptionEnd()); in testGetKeySpecWithKeystoreKeyAndKeyInfoReflectsAllAuthorizations()
[all …]
DKeyFactoryTest.java121 KeyInfo keyInfo = keyFactory.getKeySpec(keyPair.getPrivate(), KeyInfo.class); in testGetKeySpecWithKeystorePrivateKeyAndKeyInfoReflectsAllAuthorizations() local
122 assertEquals("test1", keyInfo.getKeystoreAlias()); in testGetKeySpecWithKeystorePrivateKeyAndKeyInfoReflectsAllAuthorizations()
123 assertEquals(purposes, keyInfo.getPurposes()); in testGetKeySpecWithKeystorePrivateKeyAndKeyInfoReflectsAllAuthorizations()
125 Arrays.asList(keyInfo.getBlockModes()), blockModes); in testGetKeySpecWithKeystorePrivateKeyAndKeyInfoReflectsAllAuthorizations()
128 new ArrayList<String>(Arrays.asList(keyInfo.getEncryptionPaddings())); in testGetKeySpecWithKeystorePrivateKeyAndKeyInfoReflectsAllAuthorizations()
135 new ArrayList<String>(Arrays.asList(keyInfo.getDigests())); in testGetKeySpecWithKeystorePrivateKeyAndKeyInfoReflectsAllAuthorizations()
140 MoreAsserts.assertEmpty(Arrays.asList(keyInfo.getSignaturePaddings())); in testGetKeySpecWithKeystorePrivateKeyAndKeyInfoReflectsAllAuthorizations()
141 assertEquals(keyValidityStart, keyInfo.getKeyValidityStart()); in testGetKeySpecWithKeystorePrivateKeyAndKeyInfoReflectsAllAuthorizations()
143 keyInfo.getKeyValidityForOriginationEnd()); in testGetKeySpecWithKeystorePrivateKeyAndKeyInfoReflectsAllAuthorizations()
145 keyInfo.getKeyValidityForConsumptionEnd()); in testGetKeySpecWithKeystorePrivateKeyAndKeyInfoReflectsAllAuthorizations()
[all …]
DKeyGeneratorTest.java504 KeyInfo keyInfo = TestUtils.getKeyInfo(key); in testGenerateHonorsRequestedAuthorizations() local
505 assertEquals(purposes, keyInfo.getPurposes()); in testGenerateHonorsRequestedAuthorizations()
507 Arrays.asList(blockModes), keyInfo.getBlockModes()); in testGenerateHonorsRequestedAuthorizations()
509 Arrays.asList(encryptionPaddings), keyInfo.getEncryptionPaddings()); in testGenerateHonorsRequestedAuthorizations()
510 TestUtils.assertContentsInAnyOrder(Arrays.asList(digests), keyInfo.getDigests()); in testGenerateHonorsRequestedAuthorizations()
511 MoreAsserts.assertEmpty(Arrays.asList(keyInfo.getSignaturePaddings())); in testGenerateHonorsRequestedAuthorizations()
512 assertEquals(keyValidityStart, keyInfo.getKeyValidityStart()); in testGenerateHonorsRequestedAuthorizations()
514 keyInfo.getKeyValidityForOriginationEnd()); in testGenerateHonorsRequestedAuthorizations()
516 keyInfo.getKeyValidityForConsumptionEnd()); in testGenerateHonorsRequestedAuthorizations()
517 assertFalse(keyInfo.isUserAuthenticationRequired()); in testGenerateHonorsRequestedAuthorizations()
[all …]