Home
last modified time | relevance | path

Searched refs:init (Results 1 – 25 of 120) sorted by relevance

12345

/libcore/support/src/test/java/org/apache/harmony/xnet/tests/support/
DSSLContextSpiImpl.java19 private boolean init = false; field in SSLContextSpiImpl
27 init = true; in engineInit()
31 if (!init) { in engineGetSocketFactory()
38 if (!init) { in engineGetServerSocketFactory()
45 if (!init) { in engineGetServerSessionContext()
52 if (!init) { in engineGetClientSessionContext()
68 if (!init) { in engineCreateSSLEngine()
75 if (!init) { in engineCreateSSLEngine()
DMySSLContextSpi.java42 private boolean init = false; field in MySSLContextSpi
49 init = true; in engineInit()
53 if (!init) { in engineGetSocketFactory()
60 if (!init) { in engineGetServerSocketFactory()
67 if (!init) { in engineGetServerSessionContext()
74 if (!init) { in engineGetClientSessionContext()
94 if (!init) { in engineCreateSSLEngine()
101 if (!init) { in engineCreateSSLEngine()
/libcore/luni/src/main/java/org/xml/sax/
DSAXParseException.java60 init(locator.getPublicId(), locator.getSystemId(), in SAXParseException()
63 init(null, null, -1, -1); in SAXParseException()
87 init(locator.getPublicId(), locator.getSystemId(), in SAXParseException()
90 init(null, null, -1, -1); in SAXParseException()
120 init(publicId, systemId, lineNumber, columnNumber); in SAXParseException()
152 init(publicId, systemId, lineNumber, columnNumber); in SAXParseException()
166 private void init (String publicId, String systemId, in init() method in SAXParseException
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DAlgorithmParametersTest.java131 params.init(new MyAlgorithmParameterSpec()); in test_getEncoded()
173 params.init(new MyAlgorithmParameterSpec()); in test_getEncodedLjava_lang_String()
188 params.init(new MyAlgorithmParameterSpec()); in test_getEncodedLjava_lang_String()
206 ap.init(new MyAlgorithmParameterSpec()); in test_getInstanceLjava_lang_String()
238 ap.init(new byte[6]); in test_getInstanceLjava_lang_StringLjava_lang_String()
320 params.init(new MyAlgorithmParameterSpec()); in test_getParameterSpecLjava_lang_Class()
338 params.init(new MyAlgorithmParameterSpec()); in test_getParameterSpecLjava_lang_Class()
358 ap.init(new byte[6], "aaa"); in test_getInstanceLjava_lang_StringLjava_security_Provider()
432 params.init(spec); in test_initLjava_security_spec_AlgorithmParameterSpec()
439 params.init(spec); in test_initLjava_security_spec_AlgorithmParameterSpec()
[all …]
DAlgorithmParameterGenerator2Test.java91 algParGen.init(pp, new SecureRandom()); in checkResult()
92 algParGen.init(pp); in checkResult()
94 algParGen.init(pp, null); in checkResult()
99 algParGen.init(pp, new SecureRandom()); in checkResult()
100 algParGen.init(pp); in checkResult()
102 algParGen.init(0, null); in checkResult()
103 algParGen.init(0, new SecureRandom()); in checkResult()
106 algParGen.init(-10, null); in checkResult()
111 algParGen.init(-10, new SecureRandom()); in checkResult()
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/
DMySSLContextSpi.java43 private boolean init = false; field in MySSLContextSpi
51 init = true; in engineInit()
55 if (!init) { in engineGetSocketFactory()
62 if (!init) { in engineGetServerSocketFactory()
69 if (!init) { in engineGetServerSessionContext()
76 if (!init) { in engineGetClientSessionContext()
96 if (!init) { in engineCreateSSLEngine()
103 if (!init) { in engineCreateSSLEngine()
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
DCipherTest.java79 kg.init(keyLen, new SecureRandom()); in kg.init()
83 kg.init(keyLenDES, new SecureRandom()); in kg.init()
349 cipher.init(Cipher.ENCRYPT_MODE, cipherKey, sr); in test_getOutputSizeI()
371 cipher.init(Cipher.ENCRYPT_MODE, cipherKey); in test_initILjava_security_Key()
376 cipher.init(Cipher.ENCRYPT_MODE, cipherKey); in test_initILjava_security_Key()
406 cipher.init(Cipher.ENCRYPT_MODE, cipherKey, sr); in test_initILjava_security_KeyLjava_security_SecureRandom()
410 cipher.init(Cipher.ENCRYPT_MODE, cipherKey, sr); in test_initILjava_security_KeyLjava_security_SecureRandom()
441 cipher.init(Cipher.ENCRYPT_MODE, cipherKey, ap); in test_initILjava_security_KeyLjava_security_spec_AlgorithmParameterSpec()
449 cipher.init(Cipher.ENCRYPT_MODE, cipherKey, ap); in test_initILjava_security_KeyLjava_security_spec_AlgorithmParameterSpec()
459 cipher.init(Cipher.ENCRYPT_MODE, cipherKeyDES, ap); in test_initILjava_security_KeyLjava_security_spec_AlgorithmParameterSpec()
[all …]
DExemptionMechanismTest.java87 em.init(null); in testExemptionMechanism()
101 em.init(null); in testExemptionMechanism()
161 em.init(key); in testIsCryptoAllowed()
171 em.init(key1); in testIsCryptoAllowed()
197 em.init(key); in testGenExemptionBlob()
306 em.init(key); in test_genExemptionBlob()
314 em.init(key); in test_genExemptionBlob()
350 em.init(key); in test_genExemptionBlob$B()
405 em.init(key); in test_genExemptionBlob$BI()
550 em.init(key); in test_getOutputSizeI()
[all …]
DKeyAgreementTest.java427 kAgs[i].init(privKey); in testGenerateSecret03()
430 kAgs[i].init(privKey); in testGenerateSecret03()
434 kAgs[i].init(privKey); in testGenerateSecret03()
478 kAgs[i].init(privKey); in testDoPhase()
492 kAgs[i].init(privKey, dhPs); in testDoPhase()
494 kAgs[i].init(privKey, dhPs, random); in testDoPhase()
548 kAgs[i].init(publKey); in testInit01()
553 kAgs[i].init(publKey, new SecureRandom()); in testInit01()
558 kAgs[i].init(publKey, random); in testInit01()
563 kAgs[i].init(publKey, dhPs); in testInit01()
[all …]
DSealedObjectTest.java123 cipher.init(Cipher.ENCRYPT_MODE, key, ips); in testSealedObject1()
128 cipher.init(Cipher.ENCRYPT_MODE, key, ips); in testSealedObject1()
186 cipher.init(Cipher.ENCRYPT_MODE, key); in testGetAlgorithm()
212 cipher.init(Cipher.ENCRYPT_MODE, key, ips); in testGetObject1()
262 cipher.init(Cipher.ENCRYPT_MODE, key, ips); in testGetObject2()
267 cipher.init(Cipher.DECRYPT_MODE, key, ips); in testGetObject2()
313 cipher.init(Cipher.ENCRYPT_MODE, key); in testGetObject3()
318 cipher.init(Cipher.DECRYPT_MODE, key); in testGetObject3()
DKeyGeneratorTest.java139 keyG.init(params, null); in testKeyGenerator()
144 keyG.init(keysize, null); in testKeyGenerator()
153 keyG.init(params, null); in testKeyGenerator()
158 keyG.init(keysize, null); in testKeyGenerator()
432 kgs[i].init(size[j]); in testInitKey()
439 kgs[i].init(size[j], random); in testInitKey()
485 kgs[i].init(aps); in testInitParams()
490 kgs[i].init(aps, new SecureRandom()); in testInitParams()
538 kgs[i].init(new SecureRandom()); in testGenerateKey()
542 kgs[i].init(defaultKeySize); in testGenerateKey()
[all …]
/libcore/luni/src/main/java/javax/security/auth/
DAuthPermission.java62 private static String init(String name) { in init() method in AuthPermission
80 super(init(name)); in AuthPermission()
92 super(init(name), actions); in AuthPermission()
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/func/
DCipherSymmetricKeyThread.java43 kg.init(getKeyLength(), new SecureRandom()); in crypt()
56 cip.init(Cipher.ENCRYPT_MODE, key, ivspec); in crypt()
61 cip.init(Cipher.DECRYPT_MODE, key, ivspec); in crypt()
64 cip.init(Cipher.ENCRYPT_MODE, key); in crypt()
67 cip.init(Cipher.DECRYPT_MODE, key); in crypt()
DCipherWrapThread.java33 kg.init(getKeyLength(), new SecureRandom()); in crypt()
39 cip.init(Cipher.WRAP_MODE, key); in crypt()
41 cip.init(Cipher.UNWRAP_MODE, key); in crypt()
DMacThread.java42 m.init(sks); in test()
46 m.init(sks); in test()
49 m.init(sks); in test()
/libcore/luni/src/test/java/libcore/java/security/
DOldAlgorithmParameterGeneratorTest.java37 gen.init(valid[i]); in test_initI()
55 gen.init(valid[i], new SecureRandom()); in test_initILjava_security_SecureRandom()
56 gen.init(valid[i], null); in test_initILjava_security_SecureRandom()
/libcore/luni/src/main/java/javax/crypto/
DKeyGenerator.java192 public final void init(AlgorithmParameterSpec params) in init() method in KeyGenerator
209 public final void init(AlgorithmParameterSpec params, SecureRandom random) in init() method in KeyGenerator
221 public final void init(int keysize) { in init() method in KeyGenerator
234 public final void init(int keysize, SecureRandom random) { in init() method in KeyGenerator
245 public final void init(SecureRandom random) { in init() method in KeyGenerator
DSealedObject.java159 params.init(encodedParams); in getObject()
160 cipher.init(Cipher.DECRYPT_MODE, key, params); in getObject()
162 cipher.init(Cipher.DECRYPT_MODE, key); in getObject()
254 params.init(encodedParams); in getObject()
255 cipher.init(Cipher.DECRYPT_MODE, key, params); in getObject()
257 cipher.init(Cipher.DECRYPT_MODE, key); in getObject()
DCipher.java464 public final void init(int opmode, Key key) throws InvalidKeyException { in init() method in Cipher
471 init(opmode, key, sec_rand); in init()
506 public final void init(int opmode, Key key, SecureRandom random) throws InvalidKeyException { in init() method in Cipher
552 public final void init(int opmode, Key key, AlgorithmParameterSpec params) in init() method in Cipher
557 init(opmode, key, params, sec_rand); in init()
597 public final void init(int opmode, Key key, AlgorithmParameterSpec params, in init() method in Cipher
644 public final void init(int opmode, Key key, AlgorithmParameters params) in init() method in Cipher
649 init(opmode, key, params, sec_rand); in init()
688 public final void init(int opmode, Key key, AlgorithmParameters params, in init() method in Cipher
734 public final void init(int opmode, Certificate certificate) in init() method in Cipher
[all …]
DKeyAgreement.java185 public final void init(Key key) throws InvalidKeyException { in init() method in KeyAgreement
201 public final void init(Key key, SecureRandom random) in init() method in KeyAgreement
221 public final void init(Key key, AlgorithmParameterSpec params) in init() method in KeyAgreement
243 public final void init(Key key, AlgorithmParameterSpec params, in init() method in KeyAgreement
/libcore/luni/src/main/java/java/security/
DAlgorithmParameterGenerator.java184 public final void init(int size) { in init() method in AlgorithmParameterGenerator
198 public final void init(int size, SecureRandom random) { in init() method in AlgorithmParameterGenerator
212 public final void init(AlgorithmParameterSpec genParamSpec) in init() method in AlgorithmParameterGenerator
228 public final void init(AlgorithmParameterSpec genParamSpec, in init() method in AlgorithmParameterGenerator
/libcore/luni/src/test/java/tests/api/javax/net/ssl/
DSSLContext1Test.java123 sslContext.init(km, tm, new SecureRandom()); in test_ConstructorLjavax_net_ssl_SSLContextSpiLjava_security_ProviderLjava_lang_String()
129 sslContext.init(km, tm, null); in test_ConstructorLjavax_net_ssl_SSLContextSpiLjava_security_ProviderLjava_lang_String()
165 sslContext.init(null, null, new SecureRandom()); in test_createSSLEngine()
186 sslContext.init(null, null, new SecureRandom()); in test_createSSLEngineLjava_lang_StringI()
211 sslC[i].init(null, null, null); in test_getClientSessionContext()
556 kmf.init(null, new char[11]); in test_getServerSessionContext()
559 tmf.init(ks); in test_getServerSessionContext()
562 sslCi.init(kmf.getKeyManagers(), tms, new SecureRandom()); in test_getServerSessionContext()
607 kmf.init(ks, new char[10]); in test_getServerSocketFactory()
610 tmf.init(ks); in test_getServerSocketFactory()
[all …]
DSSLSessionContextTest.java44 context.init(null, null, null); in test_sessionCacheSize()
82 context.init(null, null, null); in test_sessionTimeout()
111 context.init(null, null, null); in test_getSession()
135 context.init(null, null, null); in test_getIds()
DTrustManagerFactorySpiTest.java80 tmf.init(ks); in test_engineInit_01()
87 tmf.init((KeyStore) null); in test_engineInit_01()
114 tmf.init(pr); in test_engineInit_02()
121 tmf.init((ManagerFactoryParameters) null); in test_engineInit_02()
147 tmf.init(ks); in test_engineGetTrustManagers()
DX509KeyManagerTest.java628 void init(String name) { in init() method in X509KeyManagerTest
663 factory.init(keyTest, "1234".toCharArray()); in init()
680 init(client); in test_getClientAliases()
699 init(client); in test_chooseClientAlias()
718 init(server); in test_getServerAliases()
737 init(server); in test_chooseServerAlias()
758 init(server); in test_getCertificateChain()
775 init(client); in test_getPrivateKey()

12345