Home
last modified time | relevance | path

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

/cts/tests/tests/keystore/src/android/keystore/cts/
DKeyFactoryTest.java145 KeyFactory keyFactory = getKeyFactory(algorithm); in testGetKeySpecWithKeystorePrivateKeyAndKeyInfoReflectsAllAuthorizations() local
146 KeyInfo keyInfo = keyFactory.getKeySpec(keyPair.getPrivate(), KeyInfo.class); in testGetKeySpecWithKeystorePrivateKeyAndKeyInfoReflectsAllAuthorizations()
188 KeyFactory keyFactory = getKeyFactory(algorithm); in testGetKeySpecWithKeystorePublicKeyRejectsKeyInfo() local
190 keyFactory.getKeySpec(keyPair.getPublic(), KeyInfo.class); in testGetKeySpecWithKeystorePublicKeyRejectsKeyInfo()
218 KeyFactory keyFactory = getKeyFactory(algorithm); in testGetKeySpecWithKeystorePrivateKeyRejectsTransparentKeySpecAndEncodedKeySpec() local
220 keyFactory.getKeySpec(keyPair.getPrivate(), transparentKeySpecClass); in testGetKeySpecWithKeystorePrivateKeyRejectsTransparentKeySpecAndEncodedKeySpec()
225 keyFactory.getKeySpec(keyPair.getPrivate(), PKCS8EncodedKeySpec.class); in testGetKeySpecWithKeystorePrivateKeyRejectsTransparentKeySpecAndEncodedKeySpec()
245 KeyFactory keyFactory = getKeyFactory(algorithm); in testGetKeySpecWithKeystorePublicKeyAcceptsX509EncodedKeySpec() local
247 keyFactory.getKeySpec(publicKey, X509EncodedKeySpec.class); in testGetKeySpecWithKeystorePublicKeyAcceptsX509EncodedKeySpec()
266 KeyFactory keyFactory = getKeyFactory(algorithm); in testGetKeySpecWithKeystorePublicKeyAcceptsTransparentKeySpec() local
[all …]
DSecretKeyFactoryTest.java132 SecretKeyFactory keyFactory = getKeyFactory(algorithm); in testGetKeySpecWithKeystoreKeyAndKeyInfoReflectsAllAuthorizations() local
133 KeyInfo keyInfo = (KeyInfo) keyFactory.getKeySpec(key, KeyInfo.class); in testGetKeySpecWithKeystoreKeyAndKeyInfoReflectsAllAuthorizations()
159 SecretKeyFactory keyFactory = getKeyFactory(algorithm); in testTranslateKeyWithNullKeyThrowsInvalidKeyException() local
161 keyFactory.translateKey(null); in testTranslateKeyWithNullKeyThrowsInvalidKeyException()
175 SecretKeyFactory keyFactory = getKeyFactory(algorithm); in testTranslateKeyRejectsNonAndroidKeystoreKeys() local
177 keyFactory.translateKey(key); in testTranslateKeyRejectsNonAndroidKeystoreKeys()
205 SecretKeyFactory keyFactory = getKeyFactory(algorithm); in testTranslateKeyAcceptsAndroidKeystoreKeys() local
206 assertSame(key, keyFactory.translateKey(key)); in testTranslateKeyAcceptsAndroidKeystoreKeys()
217 SecretKeyFactory keyFactory = getKeyFactory(algorithm); in testGenerateSecretWithNullSpecThrowsInvalidKeySpecException() local
219 keyFactory.generateSecret(null); in testGenerateSecretWithNullSpecThrowsInvalidKeySpecException()
[all …]
DKeyInfoTest.java84 KeyFactory keyFactory = KeyFactory.getInstance(key.getAlgorithm(), "AndroidKeyStore"); in testImmutabilityViaGetterReturnValues() local
85 KeyInfo info = keyFactory.getKeySpec(key, KeyInfo.class); in testImmutabilityViaGetterReturnValues()
153 KeyFactory keyFactory = KeyFactory.getInstance(key.getAlgorithm(), "AndroidKeyStore"); in testLimitedUseKey() local
154 KeyInfo info = keyFactory.getKeySpec(key, KeyInfo.class); in testLimitedUseKey()
DSignatureTest.java468 KeyFactory keyFactory = KeyFactory.getInstance( in testValidSignatureGeneratedForEmptyMessageByLimitedUseKey() local
470 KeyInfo info = keyFactory.getKeySpec(keyPair.getPrivate(), KeyInfo.class); in testValidSignatureGeneratedForEmptyMessageByLimitedUseKey()
484 info = keyFactory.getKeySpec(keyPair.getPrivate(), KeyInfo.class); in testValidSignatureGeneratedForEmptyMessageByLimitedUseKey()
492 info = keyFactory.getKeySpec(entry.getPrivateKey(), KeyInfo.class); in testValidSignatureGeneratedForEmptyMessageByLimitedUseKey()
/cts/tests/tests/webkit/src/android/webkit/cts/
DWebViewSslTest.java1048 KeyFactory keyFactory = KeyFactory.getInstance("RSA"); in onReceivedClientCertRequest() local
1049 PrivateKey key = keyFactory.generatePrivate( in onReceivedClientCertRequest()