Home
last modified time | relevance | path

Searched refs:ks (Results 1 – 10 of 10) sorted by relevance

/cts/tests/tests/keystore/src/android/keystore/cts/
DKeyStoreTest.java174 KeyStore ks = KeyStore.getInstance(algorithm, provider); in keyStores() local
175 assertEquals(provider, ks.getProvider()); in keyStores()
176 assertEquals(algorithm, ks.getType()); in keyStores()
177 if (!isUnsupported(ks)) { in keyStores()
178 keyStores.add(ks); in keyStores()
185 private static boolean isSecretKeyEnabled(KeyStore ks) { in isSecretKeyEnabled() argument
187 return (!(ks.getType().equals("JKS") in isSecretKeyEnabled()
188 || ks.getType().equals("CaseExactJKS") in isSecretKeyEnabled()
189 || (ks.getType().equals("PKCS12")) in isSecretKeyEnabled()
190 || (ks.getType().equals("AndroidKeyStore")))); in isSecretKeyEnabled()
[all …]
DAndroidKeyStoreTest.java1929 KeyStore ks = KeyStore.getInstance("AndroidKeyStore"); in testKeyStore_Encrypting_RSA_NONE_NOPADDING() local
1930 assertNotNull(ks); in testKeyStore_Encrypting_RSA_NONE_NOPADDING()
1931 ks.load(null); in testKeyStore_Encrypting_RSA_NONE_NOPADDING()
1953 PrivateKey privateKey = (PrivateKey) ks.getKey(alias, null); in testKeyStore_Encrypting_RSA_NONE_NOPADDING()
1955 PublicKey publicKey = ks.getCertificate(alias).getPublicKey(); in testKeyStore_Encrypting_RSA_NONE_NOPADDING()
/cts/tests/tests/security/src/android/security/cts/
DCertBlacklistTest.java104 KeyStore ks = KeyStore.getInstance(KeyStore.getDefaultType()); in getTrustManager() local
105 ks.load(null); in getTrustManager()
108 ks.setCertificateEntry(String.valueOf(i++), ca); in getTrustManager()
111 tmf.init(ks); in getTrustManager()
DX509CertChainBuildingTest.java176 private static X509TrustManager getTrustManager(KeyStore ks, Provider p) throws Exception { in getTrustManager() argument
178 tmf.init(ks); in getTrustManager()
194 KeyStore ks = KeyStore.getInstance(KeyStore.getDefaultType()); in assertExactPath() local
195 ks.load(null); in assertExactPath()
198 ks.setEntry(String.valueOf(i++), new KeyStore.TrustedCertificateEntry(root), null); in assertExactPath()
205 X509TrustManager tm = getTrustManager(ks, p); in assertExactPath()
DSSLConscryptPlainTextExposureTest.java111 KeyStore ks = null; in StartConnect() local
117 ks = KeyStore.getInstance(KeyStore.getDefaultType()); in StartConnect()
129 ks.load(clientKey, "pocclient".toCharArray()); in StartConnect()
148 kmf.init(ks, "keypass".toCharArray()); in StartConnect()
510 KeyStore ks = null; in runServer() local
516 ks = KeyStore.getInstance(KeyStore.getDefaultType()); in runServer()
528 ks.load(serverKey, "pocserver".toCharArray()); in runServer()
545 kmf.init(ks, "keypass".toCharArray()); in runServer()
/cts/tests/tests/networksecurityconfig/networksecurityconfig-downloadmanager/src/android/security/net/config/cts/
DDownloadManagerTest.java162 KeyStore ks = KeyStore.getInstance(KeyStore.getDefaultType()); in bindTLSServer() local
163 ks.load(null); in bindTLSServer()
164 ks.setKeyEntry("name", key, null, chain); in bindTLSServer()
168 tmf.init(ks); in bindTLSServer()
171 kmf.init(ks, null); in bindTLSServer()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/security/
DKeyChainTest.java242 KeyStore ks = KeyStore.getInstance("PKCS12"); in doInBackground() local
243 ks.load(null, null); in doInBackground()
244 ks.setKeyEntry(ALIAS, privKey, EMPTY_PASSWORD, chain); in doInBackground()
245 mKeyStore = ks; in doInBackground()
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DSecurityLoggingTest.java504 final KeyStore ks = KeyStore.getInstance("AndroidKeyStore"); in importKey() local
505 ks.load(null); in importKey()
506 ks.setEntry(alias, new KeyStore.SecretKeyEntry(new SecretKeySpec(new byte[32], "AES")), in importKey()
519 final KeyStore ks = KeyStore.getInstance("AndroidKeyStore"); in deleteKey() local
520 ks.load(null); in deleteKey()
521 ks.deleteEntry(keyAlias); in deleteKey()
/cts/tests/tests/media/assets/
Dsegment000001.ts1058 �AC�'�sC�L!3a��#��@G��rS��ux/����Fh��Y�����r��,y�]�P�(փ\s�h�ٷ�Z �q�C�ks�%� ���i?m��.…
/cts/tests/libcore/javautilcollections/libs/
Dguava-20.0.jarMETA-INF/MANIFEST.MF META-INF/ META-INF/maven/ META- ...