Searched refs:keyInfo (Results 1 – 4 of 4) sorted by relevance
/cts/tests/tests/keystore/src/android/keystore/cts/ |
D | KeyPairGeneratorTest.java | 329 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 …]
|
D | SecretKeyFactoryTest.java | 115 KeyInfo keyInfo = (KeyInfo) keyFactory.getKeySpec(key, KeyInfo.class); in testGetKeySpecWithKeystoreKeyAndKeyInfoReflectsAllAuthorizations() local 116 assertEquals("test1", keyInfo.getKeystoreAlias()); in testGetKeySpecWithKeystoreKeyAndKeyInfoReflectsAllAuthorizations() 117 assertEquals(purposes, keyInfo.getPurposes()); in testGetKeySpecWithKeystoreKeyAndKeyInfoReflectsAllAuthorizations() 119 Arrays.asList(blockModes), keyInfo.getBlockModes()); in testGetKeySpecWithKeystoreKeyAndKeyInfoReflectsAllAuthorizations() 121 Arrays.asList(encryptionPaddings), keyInfo.getEncryptionPaddings()); in testGetKeySpecWithKeystoreKeyAndKeyInfoReflectsAllAuthorizations() 122 TestUtils.assertContentsInAnyOrder(Arrays.asList(digests), keyInfo.getDigests()); in testGetKeySpecWithKeystoreKeyAndKeyInfoReflectsAllAuthorizations() 123 MoreAsserts.assertEmpty(Arrays.asList(keyInfo.getSignaturePaddings())); in testGetKeySpecWithKeystoreKeyAndKeyInfoReflectsAllAuthorizations() 124 assertEquals(keyValidityStart, keyInfo.getKeyValidityStart()); in testGetKeySpecWithKeystoreKeyAndKeyInfoReflectsAllAuthorizations() 126 keyInfo.getKeyValidityForOriginationEnd()); in testGetKeySpecWithKeystoreKeyAndKeyInfoReflectsAllAuthorizations() 128 keyInfo.getKeyValidityForConsumptionEnd()); in testGetKeySpecWithKeystoreKeyAndKeyInfoReflectsAllAuthorizations() [all …]
|
D | KeyFactoryTest.java | 121 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 …]
|
D | KeyGeneratorTest.java | 495 KeyInfo keyInfo = TestUtils.getKeyInfo(key); in testGenerateHonorsRequestedAuthorizations() local 496 assertEquals(purposes, keyInfo.getPurposes()); in testGenerateHonorsRequestedAuthorizations() 498 Arrays.asList(blockModes), keyInfo.getBlockModes()); in testGenerateHonorsRequestedAuthorizations() 500 Arrays.asList(encryptionPaddings), keyInfo.getEncryptionPaddings()); in testGenerateHonorsRequestedAuthorizations() 501 TestUtils.assertContentsInAnyOrder(Arrays.asList(digests), keyInfo.getDigests()); in testGenerateHonorsRequestedAuthorizations() 502 MoreAsserts.assertEmpty(Arrays.asList(keyInfo.getSignaturePaddings())); in testGenerateHonorsRequestedAuthorizations() 503 assertEquals(keyValidityStart, keyInfo.getKeyValidityStart()); in testGenerateHonorsRequestedAuthorizations() 505 keyInfo.getKeyValidityForOriginationEnd()); in testGenerateHonorsRequestedAuthorizations() 507 keyInfo.getKeyValidityForConsumptionEnd()); in testGenerateHonorsRequestedAuthorizations() 508 assertFalse(keyInfo.isUserAuthenticationRequired()); in testGenerateHonorsRequestedAuthorizations() [all …]
|