Home
last modified time | relevance | path

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

/cts/tests/tests/keystore/src/android/keystore/cts/
DKeyFactoryTest.java120 KeyFactory keyFactory = getKeyFactory(algorithm); in testGetKeySpecWithKeystorePrivateKeyAndKeyInfoReflectsAllAuthorizations() local
121 KeyInfo keyInfo = keyFactory.getKeySpec(keyPair.getPrivate(), KeyInfo.class); in testGetKeySpecWithKeystorePrivateKeyAndKeyInfoReflectsAllAuthorizations()
162 KeyFactory keyFactory = getKeyFactory(algorithm); in testGetKeySpecWithKeystorePublicKeyRejectsKeyInfo() local
164 keyFactory.getKeySpec(keyPair.getPublic(), KeyInfo.class); in testGetKeySpecWithKeystorePublicKeyRejectsKeyInfo()
191 KeyFactory keyFactory = getKeyFactory(algorithm); in testGetKeySpecWithKeystorePrivateKeyRejectsTransparentKeySpecAndEncodedKeySpec() local
193 keyFactory.getKeySpec(keyPair.getPrivate(), transparentKeySpecClass); in testGetKeySpecWithKeystorePrivateKeyRejectsTransparentKeySpecAndEncodedKeySpec()
198 keyFactory.getKeySpec(keyPair.getPrivate(), PKCS8EncodedKeySpec.class); in testGetKeySpecWithKeystorePrivateKeyRejectsTransparentKeySpecAndEncodedKeySpec()
217 KeyFactory keyFactory = getKeyFactory(algorithm); in testGetKeySpecWithKeystorePublicKeyAcceptsX509EncodedKeySpec() local
219 keyFactory.getKeySpec(publicKey, X509EncodedKeySpec.class); in testGetKeySpecWithKeystorePublicKeyAcceptsX509EncodedKeySpec()
237 KeyFactory keyFactory = getKeyFactory(algorithm); in testGetKeySpecWithKeystorePublicKeyAcceptsTransparentKeySpec() local
[all …]
DSecretKeyFactoryTest.java122 SecretKeyFactory keyFactory = getKeyFactory(algorithm); in testGetKeySpecWithKeystoreKeyAndKeyInfoReflectsAllAuthorizations() local
123 KeyInfo keyInfo = (KeyInfo) keyFactory.getKeySpec(key, KeyInfo.class); in testGetKeySpecWithKeystoreKeyAndKeyInfoReflectsAllAuthorizations()
148 SecretKeyFactory keyFactory = getKeyFactory(algorithm); in testTranslateKeyWithNullKeyThrowsInvalidKeyException() local
150 keyFactory.translateKey(null); in testTranslateKeyWithNullKeyThrowsInvalidKeyException()
163 SecretKeyFactory keyFactory = getKeyFactory(algorithm); in testTranslateKeyRejectsNonAndroidKeystoreKeys() local
165 keyFactory.translateKey(key); in testTranslateKeyRejectsNonAndroidKeystoreKeys()
192 SecretKeyFactory keyFactory = getKeyFactory(algorithm); in testTranslateKeyAcceptsAndroidKeystoreKeys() local
193 assertSame(key, keyFactory.translateKey(key)); in testTranslateKeyAcceptsAndroidKeystoreKeys()
203 SecretKeyFactory keyFactory = getKeyFactory(algorithm); in testGenerateSecretWithNullSpecThrowsInvalidKeySpecException() local
205 keyFactory.generateSecret(null); in testGenerateSecretWithNullSpecThrowsInvalidKeySpecException()
[all …]
DKeyInfoTest.java60 KeyFactory keyFactory = KeyFactory.getInstance(key.getAlgorithm(), "AndroidKeyStore"); in testImmutabilityViaGetterReturnValues() local
61 KeyInfo info = keyFactory.getKeySpec(key, KeyInfo.class); in testImmutabilityViaGetterReturnValues()
/cts/tests/tests/webkit/src/android/webkit/cts/
DWebViewSslTest.java1023 KeyFactory keyFactory = KeyFactory.getInstance("RSA"); in onReceivedClientCertRequest() local
1024 PrivateKey key = keyFactory.generatePrivate( in onReceivedClientCertRequest()