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.java339 KeyInfo keyInfo = TestUtils.getKeyInfo(keyPair.getPrivate()); in testGenerateHonorsRequestedAuthorizationsHelper() local
340 assertEquals(purposes, keyInfo.getPurposes()); in testGenerateHonorsRequestedAuthorizationsHelper()
342 Arrays.asList(keyInfo.getBlockModes()), blockModes); in testGenerateHonorsRequestedAuthorizationsHelper()
345 new ArrayList<String>(Arrays.asList(keyInfo.getEncryptionPaddings())); in testGenerateHonorsRequestedAuthorizationsHelper()
352 new ArrayList<String>(Arrays.asList(keyInfo.getDigests())); in testGenerateHonorsRequestedAuthorizationsHelper()
357 MoreAsserts.assertEmpty(Arrays.asList(keyInfo.getSignaturePaddings())); in testGenerateHonorsRequestedAuthorizationsHelper()
358 assertEquals(keyValidityStart, keyInfo.getKeyValidityStart()); in testGenerateHonorsRequestedAuthorizationsHelper()
360 keyInfo.getKeyValidityForOriginationEnd()); in testGenerateHonorsRequestedAuthorizationsHelper()
362 keyInfo.getKeyValidityForConsumptionEnd()); in testGenerateHonorsRequestedAuthorizationsHelper()
363 assertFalse(keyInfo.isUserAuthenticationRequired()); in testGenerateHonorsRequestedAuthorizationsHelper()
[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.java707 KeyInfo keyInfo = TestUtils.getKeyInfo(key); in testGenerateHonorsRequestedAuthorizationsHelper() local
708 assertEquals(purposes, keyInfo.getPurposes()); in testGenerateHonorsRequestedAuthorizationsHelper()
710 Arrays.asList(blockModes), keyInfo.getBlockModes()); in testGenerateHonorsRequestedAuthorizationsHelper()
712 Arrays.asList(encryptionPaddings), keyInfo.getEncryptionPaddings()); in testGenerateHonorsRequestedAuthorizationsHelper()
713 TestUtils.assertContentsInAnyOrder(Arrays.asList(digests), keyInfo.getDigests()); in testGenerateHonorsRequestedAuthorizationsHelper()
714 MoreAsserts.assertEmpty(Arrays.asList(keyInfo.getSignaturePaddings())); in testGenerateHonorsRequestedAuthorizationsHelper()
715 assertEquals(keyValidityStart, keyInfo.getKeyValidityStart()); in testGenerateHonorsRequestedAuthorizationsHelper()
717 keyInfo.getKeyValidityForOriginationEnd()); in testGenerateHonorsRequestedAuthorizationsHelper()
719 keyInfo.getKeyValidityForConsumptionEnd()); in testGenerateHonorsRequestedAuthorizationsHelper()
720 assertFalse(keyInfo.isUserAuthenticationRequired()); in testGenerateHonorsRequestedAuthorizationsHelper()
[all …]