Home
last modified time | relevance | path

Searched refs:provider (Results 1 – 25 of 241) sorted by relevance

12345678910

/libcore/ojluni/src/main/java/java/nio/file/
DFileSystems.java95 FileSystemProvider provider = AccessController in defaultFileSystem() local
103 return provider.getFileSystem(URI.create("file:///")); in defaultFileSystem()
108 FileSystemProvider provider = sun.nio.fs.DefaultFileSystemProvider.create(); in getDefaultProvider() local
121 provider = (FileSystemProvider)ctor.newInstance(provider); in getDefaultProvider()
124 if (!provider.getScheme().equals("file")) in getDefaultProvider()
132 return provider; in getDefaultProvider()
219 for (FileSystemProvider provider: FileSystemProvider.installedProviders()) { in getFileSystem()
220 if (scheme.equalsIgnoreCase(provider.getScheme())) { in getFileSystem()
221 return provider.getFileSystem(uri); in getFileSystem()
324 for (FileSystemProvider provider: FileSystemProvider.installedProviders()) { in newFileSystem()
[all …]
/libcore/luni/src/test/java/libcore/java/nio/file/
DDefaultFileSystemProviderTest.java83 private FileSystemProvider provider; field in DefaultFileSystemProviderTest
87 provider = filesSetup.getDataFilePath().getFileSystem().provider(); in setUp()
92 try (InputStream is = provider.newInputStream(filesSetup.getDataFilePath(), READ)) { in test_newInputStream()
100 try (InputStream is = provider.newInputStream(filesSetup.getDataFilePath(), WRITE)) { in test_newInputStream_openOption()
105 try (InputStream is = provider.newInputStream(filesSetup.getDataFilePath(), APPEND)) { in test_newInputStream_openOption()
110 try (InputStream is = provider.newInputStream(filesSetup.getDataFilePath(), in test_newInputStream_openOption()
117 try (InputStream is = provider.newInputStream(filesSetup.getDataFilePath(), DELETE_ON_CLOSE, in test_newInputStream_openOption()
125 try (InputStream is = provider.newInputStream(filesSetup.getDataFilePath(), READ); in test_newInputStream_twice()
127 InputStream is2 = provider.newInputStream(filesSetup.getDataFilePath(), READ)) { in test_newInputStream_twice()
136 try (InputStream is = provider.newInputStream(null)){ in test_newInputStream_NPE()
[all …]
DDefaultFileSystemProvider2Test.java85 private FileSystemProvider provider; field in DefaultFileSystemProvider2Test
89 provider = filesSetup.getDataFilePath().getFileSystem().provider(); in setUp()
94 provider.move(filesSetup.getDataFilePath(), filesSetup.getTestPath()); in test_move()
102 provider.move(filesSetup.getDataFilePath(), filesSetup.getTestPath()); in test_move()
110 provider.move(filesSetup.getDataFilePath(), filesSetup.getTestPath(), REPLACE_EXISTING); in test_move()
116 provider.move(filesSetup.getTestPath(), filesSetup.getDataFilePath(), REPLACE_EXISTING); in test_move()
125 provider.move(filesSetup.getDataFilePath(), filesSetup.getTestPath()); in test_move_CopyOption()
133 provider.move(filesSetup.getDataFilePath(), filesSetup.getTestPath(), ATOMIC_MOVE); in test_move_CopyOption()
138 provider.move(filesSetup.getDataFilePath(), filesSetup.getTestPath(), in test_move_CopyOption()
147 provider.move(null, filesSetup.getTestPath()); in test_move_NPE()
[all …]
/libcore/luni/src/test/java/libcore/java/security/
DProviderTest.java92 for (Provider provider : providers) { in test_Provider_getServices()
93 String providerName = provider.getName(); in test_Provider_getServices()
99 Set<Provider.Service> services = provider.getServices(); in test_Provider_getServices()
152 Cipher.getInstance(remainingAlgo, provider); in test_Provider_getServices()
166 provider.getClass().getClassLoader())); in test_Provider_getServices()
180 provider.getService(entry.getKey(), algorithm) != null) in test_Provider_getServices()
267 for (Provider provider : providers) { in test_Provider_Properties()
269 assertEquals(provider.getName(), in test_Provider_Properties()
270 provider.get("Provider.id name")); in test_Provider_Properties()
271 assertEquals(String.valueOf(provider.getVersion()), in test_Provider_Properties()
[all …]
/libcore/ojluni/src/test/java/security/KeyAgreement/
DNegativeTest.java73 String provider = "BC"; in testDHNegative() local
77 testModifiedKeyEncodingTest(provider, kpgAlgo, kpgInit); in testDHNegative()
78 testInvalidKeyLen(provider, kaAlgo, kpgAlgo, kpgInit); in testDHNegative()
79 testInvalidKpgAlgo(provider, kaAlgo, keySize); in testDHNegative()
80 testInvalidKaAlgo(provider, kpgAlgo, keySize); in testDHNegative()
87 String provider = "AndroidOpenSSL"; in testECDHNegative() local
91 testModifiedKeyEncodingTest(provider, kpgAlgo, kpgInit); in testECDHNegative()
92 testInvalidKeyLen(provider, kaAlgo, kpgAlgo, kpgInit); in testECDHNegative()
93 testInvalidKpgAlgo(provider, kaAlgo, keySize); in testECDHNegative()
94 testInvalidKaAlgo(provider, kpgAlgo, keySize); in testECDHNegative()
[all …]
/libcore/ojluni/src/main/java/java/time/zone/
DZoneRulesProvider.java199 ZoneRulesProvider provider = new IcuZoneRulesProvider();
200 registerProvider(provider);
281 ZoneRulesProvider provider = ZONES.get(zoneId); in getProvider() local
282 if (provider == null) { in getProvider()
288 return provider; in getProvider()
307 public static void registerProvider(ZoneRulesProvider provider) { in registerProvider() argument
308 Objects.requireNonNull(provider, "provider"); in registerProvider()
309 registerProvider0(provider); in registerProvider()
310 PROVIDERS.add(provider); in registerProvider()
319 private static synchronized void registerProvider0(ZoneRulesProvider provider) { in registerProvider0() argument
[all …]
/libcore/ojluni/src/main/java/sun/security/jca/
DGetInstance.java51 public final Provider provider; field in GetInstance.Instance
53 private Instance(Provider provider, Object impl) { in Instance() argument
54 this.provider = provider; in Instance()
60 return new Object[] {impl, provider}; in toArray()
76 String provider) throws NoSuchAlgorithmException, in getService() argument
78 if (provider == null || provider.isEmpty()) { in getService()
81 Provider p = Providers.getProviderList().getProvider(provider); in getService()
83 throw new NoSuchProviderException("no such provider: " + provider); in getService()
88 + algorithm + " for provider " + provider); in getService()
94 Provider provider) throws NoSuchAlgorithmException { in getService() argument
[all …]
/libcore/luni/src/test/java/libcore/java/nio/channels/spi/
DAsynchronousChannelProviderTest.java29 AsynchronousChannelProvider provider = AsynchronousChannelProvider.provider(); in test_open_methods() local
31 assertNotNull(provider); in test_open_methods()
32 assertSame(AsynchronousChannelProvider.provider(), provider); in test_open_methods() local
34 assertNotNull(provider.openAsynchronousChannelGroup(1, new TestThreadFactory())); in test_open_methods()
36 assertNotNull(provider.openAsynchronousChannelGroup(Executors.newSingleThreadExecutor(), in test_open_methods()
39 assertNotNull(provider.openAsynchronousServerSocketChannel( in test_open_methods()
42 assertNotNull(provider.openAsynchronousSocketChannel( in test_open_methods()
45 assertNotNull(provider.openAsynchronousChannelGroup(1, new TestThreadFactory())); in test_open_methods()
/libcore/ojluni/src/main/java/javax/net/ssl/
DTrustManagerFactory.java60 private Provider provider; field in TrustManagerFactory
103 Provider provider, String algorithm) { in TrustManagerFactory() argument
105 this.provider = provider; in TrustManagerFactory()
158 instance.provider, algorithm); in getInstance()
196 String provider) throws NoSuchAlgorithmException, in getInstance() argument
200 algorithm, provider); in getInstance()
202 instance.provider, algorithm); in getInstance()
234 Provider provider) throws NoSuchAlgorithmException { in getInstance() argument
237 algorithm, provider); in getInstance()
239 instance.provider, algorithm); in getInstance()
[all …]
DKeyManagerFactory.java60 private Provider provider; field in KeyManagerFactory
103 Provider provider, String algorithm) { in KeyManagerFactory() argument
105 this.provider = provider; in KeyManagerFactory()
156 instance.provider, algorithm); in getInstance()
194 String provider) throws NoSuchAlgorithmException, in getInstance() argument
198 algorithm, provider); in getInstance()
200 instance.provider, algorithm); in getInstance()
232 Provider provider) throws NoSuchAlgorithmException { in getInstance() argument
235 algorithm, provider); in getInstance()
237 instance.provider, algorithm); in getInstance()
[all …]
DSSLContext.java92 private final Provider provider; field in SSLContext
105 protected SSLContext(SSLContextSpi contextSpi, Provider provider, in SSLContext() argument
108 this.provider = provider; in SSLContext()
201 return new SSLContext((SSLContextSpi)instance.impl, instance.provider, in getInstance()
240 public static SSLContext getInstance(String protocol, String provider) in getInstance() argument
243 ("SSLContext", SSLContextSpi.class, protocol, provider); in getInstance()
244 return new SSLContext((SSLContextSpi)instance.impl, instance.provider, in getInstance()
277 public static SSLContext getInstance(String protocol, Provider provider) in getInstance() argument
280 ("SSLContext", SSLContextSpi.class, protocol, provider); in getInstance()
281 return new SSLContext((SSLContextSpi)instance.impl, instance.provider, in getInstance()
[all …]
/libcore/ojluni/src/main/java/java/nio/channels/
DAsynchronousServerSocketChannel.java102 private final AsynchronousChannelProvider provider; field in AsynchronousServerSocketChannel
110 protected AsynchronousServerSocketChannel(AsynchronousChannelProvider provider) { in AsynchronousServerSocketChannel() argument
111 this.provider = provider; in AsynchronousServerSocketChannel()
119 public final AsynchronousChannelProvider provider() { in provider() method in AsynchronousServerSocketChannel
120 return provider; in provider()
148 AsynchronousChannelProvider provider = (group == null) ? in open() local
149 AsynchronousChannelProvider.provider() : group.provider(); in open()
150 return provider.openAsynchronousServerSocketChannel(group); in open()
DAsynchronousChannelGroup.java139 private final AsynchronousChannelProvider provider; field in AsynchronousChannelGroup
147 protected AsynchronousChannelGroup(AsynchronousChannelProvider provider) { in AsynchronousChannelGroup() argument
148 this.provider = provider; in AsynchronousChannelGroup()
156 public final AsynchronousChannelProvider provider() { in provider() method in AsynchronousChannelGroup
157 return provider; in provider()
190 return AsynchronousChannelProvider.provider() in withFixedThreadPool()
237 return AsynchronousChannelProvider.provider() in withCachedThreadPool()
277 return AsynchronousChannelProvider.provider() in withThreadPool()
/libcore/ojluni/src/main/java/java/security/cert/
DCertPathValidator.java114 private final Provider provider; field in CertPathValidator
126 Provider provider, String algorithm) in CertPathValidator() argument
129 this.provider = provider; in CertPathValidator()
177 instance.provider, algorithm); in getInstance()
218 String provider) throws NoSuchAlgorithmException, in getInstance() argument
222 CertPathValidatorSpi.class, algorithm, provider); in getInstance()
224 instance.provider, algorithm); in getInstance()
259 Provider provider) throws NoSuchAlgorithmException { in getInstance() argument
262 CertPathValidatorSpi.class, algorithm, provider); in getInstance()
264 instance.provider, algorithm); in getInstance()
[all …]
DCertPathBuilder.java113 private final Provider provider; field in CertPathBuilder
124 protected CertPathBuilder(CertPathBuilderSpi builderSpi, Provider provider, in CertPathBuilder() argument
128 this.provider = provider; in CertPathBuilder()
176 instance.provider, algorithm); in getInstance()
216 public static CertPathBuilder getInstance(String algorithm, String provider) in getInstance() argument
220 CertPathBuilderSpi.class, algorithm, provider); in getInstance()
222 instance.provider, algorithm); in getInstance()
257 Provider provider) throws NoSuchAlgorithmException { in getInstance() argument
260 CertPathBuilderSpi.class, algorithm, provider); in getInstance()
262 instance.provider, algorithm); in getInstance()
[all …]
DCertificateFactory.java155 private Provider provider; field in CertificateFactory
169 Provider provider, String type) in CertificateFactory() argument
172 this.provider = provider; in CertificateFactory()
209 instance.provider, type); in getInstance()
250 String provider) throws CertificateException, in getInstance() argument
254 Providers.checkBouncyCastleDeprecation(provider, "CertificateFactory", type); in getInstance()
256 CertificateFactorySpi.class, type, provider); in getInstance()
258 instance.provider, type); in getInstance()
294 Provider provider) throws CertificateException { in getInstance() argument
297 Providers.checkBouncyCastleDeprecation(provider, "CertificateFactory", type); in getInstance()
[all …]
DCertStore.java103 private Provider provider; field in CertStore
116 protected CertStore(CertStoreSpi storeSpi, Provider provider, in CertStore() argument
119 this.provider = provider; in CertStore()
243 instance.provider, type, params); in getInstance()
309 CertStoreParameters params, String provider) in getInstance() argument
315 CertStoreSpi.class, type, params, provider); in getInstance()
317 instance.provider, type, params); in getInstance()
367 Provider provider) throws NoSuchAlgorithmException, in getInstance() argument
372 CertStoreSpi.class, type, params, provider); in getInstance()
374 instance.provider, type, params); in getInstance()
[all …]
/libcore/ojluni/src/main/java/sun/net/ftp/
DFtpClientProvider.java49 private static FtpClientProvider provider = null; field in FtpClientProvider
71 provider = (FtpClientProvider) c.newInstance(); in loadProviderFromProperty()
136 public static FtpClientProvider provider() { in provider() method in FtpClientProvider
138 if (provider != null) { in provider()
139 return provider; in provider()
146 return provider; in provider()
149 return provider; in provider()
151 provider = new sun.net.ftp.impl.DefaultFtpClientProvider(); in provider()
152 return provider; in provider()
/libcore/ojluni/src/main/java/java/security/
DAlgorithmParameters.java172 private Provider provider; field in AlgorithmParameters
191 Provider provider, String algorithm) in AlgorithmParameters() argument
194 this.provider = provider; in AlgorithmParameters()
291 String provider) in getInstance() argument
299 if (provider == null || provider.isEmpty()) in getInstance()
302 Providers.checkBouncyCastleDeprecation(provider, "AlgorithmParameters", algorithm); in getInstance()
304 provider); in getInstance()
343 Provider provider) in getInstance() argument
351 if (provider == null) in getInstance()
354 Providers.checkBouncyCastleDeprecation(provider, "AlgorithmParameters", algorithm); in getInstance()
[all …]
DAlgorithmParameterGenerator.java118 private Provider provider; field in AlgorithmParameterGenerator
134 (AlgorithmParameterGeneratorSpi paramGenSpi, Provider provider, in AlgorithmParameterGenerator() argument
137 this.provider = provider; in AlgorithmParameterGenerator()
234 String provider) in getInstance() argument
242 if (provider == null || provider.isEmpty()) in getInstance()
246 provider); in getInstance()
284 Provider provider) in getInstance() argument
292 if (provider == null) in getInstance()
296 provider); in getInstance()
308 return this.provider; in getProvider()
DMessageDigest.java153 private Provider provider; field in MessageDigest
218 md.provider = (Provider)objs[1]; in getInstance()
272 public static MessageDigest getInstance(String algorithm, String provider) in getInstance() argument
276 if (provider == null || provider.isEmpty()) in getInstance()
279 Providers.checkBouncyCastleDeprecation(provider, "MessageDigest", algorithm); in getInstance()
280 Object[] objs = Security.getImpl(algorithm, "MessageDigest", provider); in getInstance()
283 md.provider = (Provider)objs[1]; in getInstance()
288 delegate.provider = (Provider)objs[1]; in getInstance()
327 Provider provider) in getInstance() argument
331 if (provider == null) in getInstance()
[all …]
DSecureRandom.java117 private Provider provider = null; field in SecureRandom
212 this.provider = random.getProvider(); in getDefaultPRNG()
238 Provider provider) { in SecureRandom() argument
239 this(secureRandomSpi, provider, null); in SecureRandom()
242 private SecureRandom(SecureRandomSpi secureRandomSpi, Provider provider, in SecureRandom() argument
246 this.provider = provider; in SecureRandom()
300 instance.provider, algorithm); in getInstance()
346 public static SecureRandom getInstance(String algorithm, String provider) in getInstance() argument
349 SecureRandomSpi.class, algorithm, provider); in getInstance()
351 instance.provider, algorithm); in getInstance()
[all …]
/libcore/luni/src/test/java/org/apache/harmony/nio/tests/java/nio/channels/spi/
DSelectorProviderTest.java34 assertNotNull(SelectorProvider.provider()); in test_open_methods()
37 SelectorProvider.provider().inheritedChannel(); in test_open_methods()
39 assertNotNull(SelectorProvider.provider().openDatagramChannel()); in test_open_methods()
40 assertNotNull(SelectorProvider.provider().openPipe()); in test_open_methods()
41 assertNotNull(SelectorProvider.provider().openServerSocketChannel()); in test_open_methods()
42 assertNotNull(SelectorProvider.provider().openSocketChannel()); in test_open_methods()
43 assertNotNull(SelectorProvider.provider().openSelector()); in test_open_methods()
/libcore/ojluni/src/main/java/java/nio/channels/spi/
DSelectorProvider.java72 private static SelectorProvider provider = null; field in SelectorProvider
101 provider = (SelectorProvider)tmp; in loadProviderFromProperty()
124 provider = i.next(); in loadProviderAsService()
171 public static SelectorProvider provider() { in provider() method in SelectorProvider
173 if (provider != null) in provider()
174 return provider; in provider()
179 return provider; in provider()
181 return provider; in provider()
182 provider = sun.nio.ch.DefaultSelectorProvider.create(); in provider()
183 return provider; in provider()
/libcore/ojluni/src/main/java/javax/crypto/
DSecretKeyFactory.java270 private Provider provider; field in SecretKeyFactory
293 Provider provider, String algorithm) { in SecretKeyFactory() argument
295 this.provider = provider; in SecretKeyFactory()
386 String provider) throws NoSuchAlgorithmException, in getInstance() argument
389 Providers.checkBouncyCastleDeprecation(provider, "SecretKeyFactory", algorithm); in getInstance()
391 SecretKeyFactorySpi.class, algorithm, provider); in getInstance()
393 instance.provider, algorithm); in getInstance()
429 Provider provider) throws NoSuchAlgorithmException { in getInstance() argument
431 Providers.checkBouncyCastleDeprecation(provider, "SecretKeyFactory", algorithm); in getInstance()
433 SecretKeyFactorySpi.class, algorithm, provider); in getInstance()
[all …]

12345678910