Searched refs:provider (Results 51 - 75 of 180) sorted by relevance

12345678

/libcore/luni/src/test/java/libcore/javax/crypto/
H A DCipherOutputStreamTest.java39 for (Provider provider : Security.getProviders()) {
42 cipher = Cipher.getInstance("AES/GCM/NoPadding", provider);
47 if (provider.getName().equals("AndroidKeyStoreBCWorkaround")) {
59 if (provider.getName().equals("AndroidKeyStoreBCWorkaround")) {
75 + " Provider: " + provider);
83 // The AndroidKeyStoreBCWorkaround provider can't use keys created by anything
/libcore/ojluni/src/main/java/javax/crypto/
H A DSealedObject.java218 * If the default provider package provides an implementation of that
314 * the given <code>provider</code>.
323 * @param provider the name of the provider of the algorithm to unseal
328 * @exception IllegalArgumentException if the given provider is null
335 * @exception NoSuchProviderException if the given provider is not
341 public final Object getObject(Key key, String provider) argument
348 if (provider == null || provider.length() == 0) {
349 throw new IllegalArgumentException("missing provider");
360 unseal(Key key, String provider) argument
[all...]
H A DEncryptedPrivateKeyInfo.java262 Provider provider) throws NoSuchAlgorithmException,
267 if (provider == null) {
271 c = Cipher.getInstance(algid.getName(), provider);
313 * @param providerName the name of provider whose Cipher
318 * @exception NoSuchProviderException if no provider
335 throw new NullPointerException("provider is null");
337 Provider provider = Security.getProvider(providerName);
338 if (provider == null) {
339 throw new NoSuchProviderException("provider " +
342 return getKeySpecImpl(decryptKey, provider);
261 getKeySpecImpl(Key decryptKey, Provider provider) argument
362 getKeySpec(Key decryptKey, Provider provider) argument
[all...]
H A DJceSecurity.java105 String provider) throws NoSuchAlgorithmException,
107 Service s = GetInstance.getService(type, algorithm, provider);
110 String msg = "JCE cannot authenticate the provider " + provider;
118 Provider provider) throws NoSuchAlgorithmException {
119 Service s = GetInstance.getService(type, algorithm, provider);
120 Exception ve = JceSecurity.getVerificationResult(provider);
122 String msg = "JCE cannot authenticate the provider "
123 + provider.getName();
162 * Verify if the JAR at URL codeBase is a signed provider JA
104 getInstance(String type, Class<?> clazz, String algorithm, String provider) argument
117 getInstance(String type, Class<?> clazz, String algorithm, Provider provider) argument
[all...]
/libcore/luni/src/test/java/libcore/java/nio/channels/
H A DOldSocketChannelTest.java93 SelectorProvider.provider().openSocketChannel();
95 assertSame(SelectorProvider.provider(), channel.provider());
98 assertSame(SelectorProvider.provider(), channel.provider());
100 SelectorProvider.provider());
115 SelectorProvider.provider());
118 assertNull(testMSChannel.provider());
119 assertNotNull(testSChannel.provider());
120 assertEquals(SelectorProvider.provider(), testSChanne
351 MockSocketChannel(SelectorProvider provider) argument
[all...]
H A DAsynchronousChannelGroupTest.java40 assertEquals(AsynchronousChannelProvider.provider(), acg.provider());
61 assertEquals(AsynchronousChannelProvider.provider(), acg.provider());
76 assertEquals(AsynchronousChannelProvider.provider(), acg.provider());
H A DOldServerSocketChannelTest.java67 SelectorProvider.provider().openServerSocketChannel();
69 assertSame(SelectorProvider.provider(),channel.provider());
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/
H A DTrustManagerFactorySpiTest.java56 Provider provider = new MyProvider();
58 provider);
83 Provider provider = new MyProvider();
85 provider);
109 Provider provider = new MyProvider();
111 provider);
/libcore/ojluni/src/main/java/java/nio/channels/spi/
H A DAbstractSelectableChannel.java54 // The provider that created this channel
55 private final SelectorProvider provider; field in class:AbstractSelectableChannel
76 * @param provider
77 * The provider that created this channel
79 protected AbstractSelectableChannel(SelectorProvider provider) { argument
80 this.provider = provider;
84 * Returns the provider that created this channel.
86 * @return The provider that created this channel
88 public final SelectorProvider provider() { method in class:AbstractSelectableChannel
[all...]
H A DAsynchronousChannelProvider.java38 * Service-provider class for asynchronous channels.
40 * <p> An asynchronous channel provider is a concrete subclass of this class that
43 * system-wide default provider instance, which is returned by the {@link
44 * #provider() provider} method. The first invocation of that method will locate
45 * the default provider as specified below.
73 // lazy initialization of default provider
75 static final AsynchronousChannelProvider provider = load(); field in class:AsynchronousChannelProvider.ProviderHolder
121 // Ignore the security exception, try the next provider
131 * Returns the system-wide default asynchronous channel provider fo
165 public static AsynchronousChannelProvider provider() { method in class:AsynchronousChannelProvider
[all...]
/libcore/ojluni/src/main/java/java/nio/channels/
H A DSocketChannel.java124 * @param provider
125 * The provider that created this channel
127 protected SocketChannel(SelectorProvider provider) { argument
128 super(provider);
145 return SelectorProvider.provider().openSocketChannel();
H A DSelectableChannel.java103 * Returns the provider that created this channel.
105 * @return The provider that created this channel
107 public abstract SelectorProvider provider(); method in class:SelectableChannel
204 * If this channel was not created by the same provider
262 * If this channel was not created by the same provider
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
H A DSecurity2Test.java43 for (Provider provider : allProviders) {
44 for (Object k : provider.keySet()) {
46 // No aliases and no provider data
56 for (Provider provider : allProviders) {
57 for (Map.Entry entry : provider.entrySet()) {
67 // Add 1 to the provider count of the thing being aliased
118 // for each provider
119 for (Provider provider : allProviders) {
120 Set allProviderKeys = provider.keySet();
137 // current provider
[all...]
/libcore/ojluni/src/main/java/java/security/cert/
H A DCertPathHelperImpl.java30 import sun.security.provider.certpath.CertPathHelper;
35 * Helper class that allows the Sun CertPath provider to access
50 * prior to a tunneled call from the Sun provider.
/libcore/ojluni/src/main/java/sun/security/provider/certpath/
H A DSunCertPathBuilderException.java26 package sun.security.provider.certpath;
H A DSunCertPathBuilderResult.java26 package sun.security.provider.certpath;
/libcore/ojluni/src/main/java/java/security/
H A DKeyStore.java216 Debug.getInstance("provider", "Provider");
235 // The provider
236 private Provider provider; field in class:KeyStore
238 // The provider implementation
337 * If none was set then the keystore provider will use its default
835 * provider implementation (SPI object) in it.
837 * @param keyStoreSpi the provider implementation.
838 * @param provider the provider.
841 protected KeyStore(KeyStoreSpi keyStoreSpi, Provider provider, Strin argument
929 getInstance(String type, String provider) argument
970 getInstance(String type, Provider provider) argument
1781 newInstance(String type, Provider provider, File file, ProtectionParameter protection) argument
1804 private final Provider provider; field in class:KeyStore.Builder.FileBuilder
1814 FileBuilder(String type, Provider provider, File file, ProtectionParameter protection, AccessControlContext context) argument
1946 newInstance(final String type, final Provider provider, final ProtectionParameter protection) argument
[all...]
H A DPolicy.java58 String provider)
66 Provider provider)
56 getInstance(String type, Policy.Parameters params, String provider) argument
64 getInstance(String type, Policy.Parameters params, Provider provider) argument
H A DSignature.java257 Debug.getInstance("provider", "Provider");
270 // The provider
271 Provider provider; field in class:Signature
397 sig.provider = instance.provider;
407 signatureInfo.put("sun.security.provider.DSA$RawDSA", TRUE);
408 signatureInfo.put("sun.security.provider.DSA$SHA1withDSA", TRUE);
438 debug.println("Delayed provider selection may not be "
458 * SignatureSpi implementation from the specified provider
459 * is returned. The specified provider mus
487 getInstance(String algorithm, String provider) argument
537 getInstance(String algorithm, Provider provider) argument
[all...]
/libcore/ojluni/src/main/java/java/nio/file/
H A DFiles.java85 * file system provider to perform the file operations.
96 private static FileSystemProvider provider(Path path) { method in class:Files
97 return path.getFileSystem().provider();
123 * file system provider specific and therefore not specified.
145 * In the case of the default provider, and a security manager is
152 return provider(path).newInputStream(path, options);
160 * <i>interruptible</i> is highly file system provider specific and
206 * In the case of the default provider, and a security manager is
216 return provider(path).newOutputStream(path, options);
303 * <p> In the case of the default provider, th
[all...]
/libcore/luni/src/main/native/
H A DIcuUtilities.cpp32 jobjectArray fromStringEnumeration(JNIEnv* env, UErrorCode& status, const char* provider, icu::StringEnumeration* se) { argument
33 if (maybeThrowIcuException(env, provider, status)) {
/libcore/ojluni/src/main/java/sun/nio/fs/
H A DLinuxFileSystem.java38 LinuxFileSystem(UnixFileSystemProvider provider, String dir) { argument
39 super(provider, dir);
/libcore/ojluni/src/main/java/sun/security/jca/
H A DProviders.java38 * Collection of methods to get and set provider list. Also includes
39 * special code for the provider list during JAR verification.
49 // number of threads currently using thread-local provider lists
53 // current system-wide provider list
57 // Android-added: Keep reference to system-created Bouncy Castle provider
77 // Android-added: Set BC provider instance
94 // To avoid that, we use different provider settings during JAR
95 // verification. However, we do not want those provider settings to
103 "sun.security.provider.VerificationProvider";
110 "sun.security.provider
324 checkBouncyCastleDeprecation(String provider, String service, String algorithm) argument
341 checkBouncyCastleDeprecation(Provider provider, String service, String algorithm) argument
[all...]
/libcore/luni/src/test/java/tests/security/cert/
H A DCertStore2Test.java26 Provider provider; field in class:CertStore2Test
30 provider = new MyCertStoreProvider();
31 Security.addProvider(provider);
159 parameters, provider);
163 assertSame(provider, certStore.getProvider());
172 provider);
175 assertSame(provider, certStore.getProvider());
183 CertStore.getInstance("UnknownCertStore", null, provider);
193 new MyOtherCertStoreParameters(), provider);
/libcore/luni/src/test/java/tests/targets/security/
H A DSignatureTestMD2withRSA.java94 Provider provider = new MyProvider();
95 Security.addProvider(provider);
106 Security.removeProvider(provider.getName());

Completed in 432 milliseconds

12345678