Searched refs:keyFactory (Results 1 – 6 of 6) sorted by relevance
120 KeyFactory keyFactory = getKeyFactory(algorithm); in testGetKeySpecWithKeystorePrivateKeyAndKeyInfoReflectsAllAuthorizations() local121 KeyInfo keyInfo = keyFactory.getKeySpec(keyPair.getPrivate(), KeyInfo.class); in testGetKeySpecWithKeystorePrivateKeyAndKeyInfoReflectsAllAuthorizations()162 KeyFactory keyFactory = getKeyFactory(algorithm); in testGetKeySpecWithKeystorePublicKeyRejectsKeyInfo() local164 keyFactory.getKeySpec(keyPair.getPublic(), KeyInfo.class); in testGetKeySpecWithKeystorePublicKeyRejectsKeyInfo()191 KeyFactory keyFactory = getKeyFactory(algorithm); in testGetKeySpecWithKeystorePrivateKeyRejectsTransparentKeySpecAndEncodedKeySpec() local193 keyFactory.getKeySpec(keyPair.getPrivate(), transparentKeySpecClass); in testGetKeySpecWithKeystorePrivateKeyRejectsTransparentKeySpecAndEncodedKeySpec()198 keyFactory.getKeySpec(keyPair.getPrivate(), PKCS8EncodedKeySpec.class); in testGetKeySpecWithKeystorePrivateKeyRejectsTransparentKeySpecAndEncodedKeySpec()217 KeyFactory keyFactory = getKeyFactory(algorithm); in testGetKeySpecWithKeystorePublicKeyAcceptsX509EncodedKeySpec() local219 keyFactory.getKeySpec(publicKey, X509EncodedKeySpec.class); in testGetKeySpecWithKeystorePublicKeyAcceptsX509EncodedKeySpec()237 KeyFactory keyFactory = getKeyFactory(algorithm); in testGetKeySpecWithKeystorePublicKeyAcceptsTransparentKeySpec() local[all …]
114 SecretKeyFactory keyFactory = getKeyFactory(algorithm); in testGetKeySpecWithKeystoreKeyAndKeyInfoReflectsAllAuthorizations() local115 KeyInfo keyInfo = (KeyInfo) keyFactory.getKeySpec(key, KeyInfo.class); in testGetKeySpecWithKeystoreKeyAndKeyInfoReflectsAllAuthorizations()140 SecretKeyFactory keyFactory = getKeyFactory(algorithm); in testTranslateKeyWithNullKeyThrowsInvalidKeyException() local142 keyFactory.translateKey(null); in testTranslateKeyWithNullKeyThrowsInvalidKeyException()155 SecretKeyFactory keyFactory = getKeyFactory(algorithm); in testTranslateKeyRejectsNonAndroidKeystoreKeys() local157 keyFactory.translateKey(key); in testTranslateKeyRejectsNonAndroidKeystoreKeys()174 SecretKeyFactory keyFactory = getKeyFactory(algorithm); in testTranslateKeyAcceptsAndroidKeystoreKeys() local175 assertSame(key, keyFactory.translateKey(key)); in testTranslateKeyAcceptsAndroidKeystoreKeys()185 SecretKeyFactory keyFactory = getKeyFactory(algorithm); in testGenerateSecretWithNullSpecThrowsInvalidKeySpecException() local187 keyFactory.generateSecret(null); in testGenerateSecretWithNullSpecThrowsInvalidKeySpecException()[all …]
60 KeyFactory keyFactory = KeyFactory.getInstance(key.getAlgorithm(), "AndroidKeyStore"); in testImmutabilityViaGetterReturnValues() local61 KeyInfo info = keyFactory.getKeySpec(key, KeyInfo.class); in testImmutabilityViaGetterReturnValues()
262 KeyFactory keyFactory = KeyFactory.getInstance("RSA"); in serverBind() local263 PrivateKey privateKey = keyFactory.generatePrivate(new PKCS8EncodedKeySpec( in serverBind()
264 KeyFactory keyFactory = KeyFactory.getInstance("RSA"); in serverBind() local265 PrivateKey privateKey = keyFactory.generatePrivate(new PKCS8EncodedKeySpec( in serverBind()
1012 KeyFactory keyFactory = KeyFactory.getInstance("RSA"); in onReceivedClientCertRequest() local1013 PrivateKey key = keyFactory.generatePrivate( in onReceivedClientCertRequest()