/libcore/luni/src/test/java/org/apache/harmony/nio/tests/java/nio/channels/spi/ |
H A D | SelectorProviderTest.java | 33 // calling #provider to see if it returns without Exception. 34 assertNotNull(SelectorProvider.provider()); 37 SelectorProvider.provider().inheritedChannel(); 39 assertNotNull(SelectorProvider.provider().openDatagramChannel()); 40 assertNotNull(SelectorProvider.provider().openPipe()); 41 assertNotNull(SelectorProvider.provider().openServerSocketChannel()); 42 assertNotNull(SelectorProvider.provider().openSocketChannel()); 43 assertNotNull(SelectorProvider.provider().openSelector());
|
/libcore/luni/src/main/java/java/security/ |
H A D | KeyPairGenerator.java | 42 // Store used provider 43 private Provider provider; field in class:KeyPairGenerator 87 Provider provider = sap.provider; 91 result.provider = provider; 94 return new KeyPairGeneratorImpl((KeyPairGeneratorSpi) spi, provider, algorithm); 99 * specified algorithm from the specified provider. 103 * @param provider 104 * the name of the provider 113 getInstance(String algorithm, String provider) argument 140 getInstance(String algorithm, Provider provider) argument 257 KeyPairGeneratorImpl(KeyPairGeneratorSpi keyPairGeneratorSpi, Provider provider, String algorithm) argument [all...] |
H A D | AlgorithmParameterGenerator.java | 38 // Store used provider 39 private final Provider provider; field in class:AlgorithmParameterGenerator 53 * @param provider 54 * the provider. 59 AlgorithmParameterGeneratorSpi paramGenSpi, Provider provider, 61 this.provider = provider; 95 sap.provider, algorithm); 100 * specified provider for the specified algorithm. 104 * @param provider 58 AlgorithmParameterGenerator( AlgorithmParameterGeneratorSpi paramGenSpi, Provider provider, String algorithm) argument 117 getInstance(String algorithm, String provider) argument 146 getInstance(String algorithm, Provider provider) argument [all...] |
H A D | KeyFactory.java | 37 // The provider 38 private final Provider provider; field in class:KeyFactory 52 * @param provider 53 * the provider. 58 Provider provider, 60 this.provider = provider; 74 * if no provider provides the requested algorithm. 82 return new KeyFactory((KeyFactorySpi) sap.spi, sap.provider, algorithm); 87 * algorithm from the specified provider 57 KeyFactory(KeyFactorySpi keyFacSpi, Provider provider, String algorithm) argument 101 getInstance(String algorithm, String provider) argument 127 getInstance(String algorithm, Provider provider) argument [all...] |
H A D | AlgorithmParameters.java | 42 * The security provider. 44 private final Provider provider; field in class:AlgorithmParameters 67 * @param provider 68 * the security provider. 73 Provider provider, String algorithm) { 74 this.provider = provider; 98 return new AlgorithmParameters((AlgorithmParametersSpi) sap.spi, sap.provider, algorithm); 103 * provider for the specified algorithm. 107 * @param provider 72 AlgorithmParameters(AlgorithmParametersSpi algPramSpi, Provider provider, String algorithm) argument 119 getInstance(String algorithm, String provider) argument 148 getInstance(String algorithm, Provider provider) argument [all...] |
H A D | MessageDigest.java | 56 // The provider 57 private Provider provider; field in class:MessageDigest 93 Provider provider = sap.provider; 97 result.provider = provider; 100 return new MessageDigestImpl((MessageDigestSpi) sap.spi, sap.provider, algorithm); 105 * specified algorithm from the specified provider. 109 * @param provider 110 * the name of the provider 121 getInstance(String algorithm, String provider) argument 149 getInstance(String algorithm, Provider provider) argument 383 MessageDigestImpl(MessageDigestSpi messageDigestSpi, Provider provider, String algorithm) argument [all...] |
H A D | SecureRandom.java | 26 import org.apache.harmony.security.provider.crypto.SHA1PRNG_SecureRandomImpl; 33 * provider available: 40 * provider found in the installed security providers. Use {@link Security} 75 private final Provider provider; field in class:SecureRandom 91 this.provider = null; 96 this.provider = service.getProvider(); 117 * implementation from the specified provider. 121 * @param provider 122 * the security provider. 125 Provider provider) { 124 SecureRandom(SecureRandomSpi secureRandomSpi, Provider provider) argument 130 SecureRandom(SecureRandomSpi secureRandomSpi, Provider provider, String algorithm) argument 179 getInstance(String algorithm, String provider) argument 207 getInstance(String algorithm, Provider provider) argument [all...] |
H A D | Signature.java | 44 // The provider 45 private Provider provider; field in class:Signature 106 Provider provider = sap.provider; 110 result.provider = provider; 113 return new SignatureImpl((SignatureSpi) spi, provider, algorithm); 118 * algorithm from the specified provider. 122 * @param provider 123 * the name of the provider 134 getInstance(String algorithm, String provider) argument 165 getInstance(String algorithm, Provider provider) argument 176 getSignatureInstance(String algorithm, Provider provider) argument 595 SignatureImpl(SignatureSpi signatureSpi, Provider provider, String algorithm) argument [all...] |
/libcore/luni/src/main/java/java/security/cert/ |
H A D | CertPathBuilder.java | 45 // Store used provider 46 private final Provider provider; field in class:CertPathBuilder 59 * @param provider 60 * the provider. 62 * the desired algorithm available at the provider. 64 protected CertPathBuilder(CertPathBuilderSpi builderSpi, Provider provider, argument 66 this.provider = provider; 81 * Returns the provider of this instance. 83 * @return the provider o 127 getInstance(String algorithm, String provider) argument 155 getInstance(String algorithm, Provider provider) argument [all...] |
H A D | CertPathValidator.java | 46 // Store used provider 47 private final Provider provider; field in class:CertPathValidator 60 * @param provider 61 * the security provider. 66 Provider provider, String algorithm) { 67 this.provider = provider; 82 * Returns the security provider. 84 * @return the provider. 87 return provider; 65 CertPathValidator(CertPathValidatorSpi validatorSpi, Provider provider, String algorithm) argument 128 getInstance(String algorithm, String provider) argument 157 getInstance(String algorithm, Provider provider) argument [all...] |
H A D | CertStore.java | 48 // Store used provider 49 private final Provider provider; field in class:CertStore 65 * @param provider 66 * the security provider. 72 protected CertStore(CertStoreSpi storeSpi, Provider provider, String type, argument 74 this.provider = provider; 90 * if no provider can provide the specified certificate store 104 return new CertStore((CertStoreSpi) sap.spi, sap.provider, type, params); 116 * Creates a new {@code CertStore} instance from the specified provider wit 138 getInstance(String type, CertStoreParameters params, String provider) argument 171 getInstance(String type, CertStoreParameters params, Provider provider) argument [all...] |
H A D | CertificateFactory.java | 46 // Store used provider 47 private final Provider provider; field in class:CertificateFactory 60 * @param provider 61 * the associated provider. 66 Provider provider, String type) { 67 this.provider = provider; 81 * installed provider. 91 return new CertificateFactory((CertificateFactorySpi) sap.spi, sap.provider, type); 99 * provider tha 65 CertificateFactory(CertificateFactorySpi certFacSpi, Provider provider, String type) argument 116 getInstance(String type, String provider) argument 147 getInstance(String type, Provider provider) argument [all...] |
/libcore/luni/src/main/java/javax/crypto/ |
H A D | SecretKeyFactory.java | 36 * <li>translate {@link SecretKey} objects from one provider implementation to 40 * {@link #getKeySpec} is provider dependent. 47 // Store used provider 48 private final Provider provider; field in class:SecretKeyFactory 61 * @param provider 62 * the provider providing this key factory. 67 Provider provider, String algorithm) { 68 this.provider = provider; 83 * Returns the provider fo 66 SecretKeyFactory(SecretKeyFactorySpi keyFacSpi, Provider provider, String algorithm) argument 131 getInstance(String algorithm, String provider) argument 162 getInstance(String algorithm, Provider provider) argument [all...] |
H A D | KeyAgreement.java | 44 // Store used provider 45 private final Provider provider; field in class:KeyAgreement 58 * @param provider 59 * the provider providing this KeyAgreement. 63 protected KeyAgreement(KeyAgreementSpi keyAgreeSpi, Provider provider, argument 65 this.provider = provider; 80 * Returns the provider for this {@code KeyAgreement} instance. 82 * @return the provider for this {@code KeyAgreement} instance. 85 return provider; 127 getInstance(String algorithm, String provider) argument 158 getInstance(String algorithm, Provider provider) argument [all...] |
H A D | KeyGenerator.java | 42 // Store used provider 43 private final Provider provider; field in class:KeyGenerator 56 * @param provider 57 * the implementation provider. 61 protected KeyGenerator(KeyGeneratorSpi keyGenSpi, Provider provider, argument 63 this.provider = provider; 78 * Returns the provider of this {@code KeyGenerator} instance. 80 * @return the provider of this {@code KeyGenerator} instance. 83 return provider; 126 getInstance(String algorithm, String provider) argument 155 getInstance(String algorithm, Provider provider) argument [all...] |
H A D | Mac.java | 41 // Store used provider 42 private final Provider provider; field in class:Mac 58 * @param provider 59 * the implementation provider. 63 protected Mac(MacSpi macSpi, Provider provider, String algorithm) { argument 64 this.provider = provider; 80 * Returns the provider of this {@code Mac} instance. 82 * @return the provider of this {@code Mac} instance. 85 return provider; 130 getInstance(String algorithm, String provider) argument 160 getInstance(String algorithm, Provider provider) argument [all...] |
H A D | ExemptionMechanism.java | 41 // Store used provider 42 private final Provider provider; field in class:ExemptionMechanism 64 * @param provider 65 * the associated provider. 70 Provider provider, String mechanism) { 73 this.provider = provider; 94 * if the specified algorithm is not available by any provider. 104 return new ExemptionMechanism((ExemptionMechanismSpi) sap.spi, sap.provider, algorithm); 109 * specified exemption mechanism algorithm from the specified provider 69 ExemptionMechanism(ExemptionMechanismSpi exmechSpi, Provider provider, String mechanism) argument 126 getInstance(String algorithm, String provider) argument 159 getInstance(String algorithm, Provider provider) argument [all...] |
/libcore/luni/src/main/java/javax/net/ssl/ |
H A D | TrustManagerFactory.java | 30 * The factory for {@code TrustManager}s based on {@code KeyStore} or provider 66 * if no installed provider can provide the requested algorithm. 77 return new TrustManagerFactory((TrustManagerFactorySpi) sap.spi, sap.provider, algorithm); 82 * trust management algorithm from the specified provider. 86 * @param provider 87 * the name of the provider that provides the requested 91 * if the specified provider cannot provide the requested 94 * if the specified provider does not exist. 99 public static final TrustManagerFactory getInstance(String algorithm, String provider) argument 101 if ((provider 127 getInstance(String algorithm, Provider provider) argument 140 private final Provider provider; field in class:TrustManagerFactory 158 TrustManagerFactory(TrustManagerFactorySpi factorySpi, Provider provider, String algorithm) argument [all...] |
H A D | KeyManagerFactory.java | 67 * if no installed provider can provide the requested algorithm. 78 return new KeyManagerFactory((KeyManagerFactorySpi) sap.spi, sap.provider, algorithm); 83 * management algorithm from the specified provider. 87 * @param provider 88 * the name of the provider that provides the requested 92 * if the specified provider cannot provide the requested 95 * if the specified provider does not exist. 100 public static final KeyManagerFactory getInstance(String algorithm, String provider) argument 102 if ((provider == null) || (provider 128 getInstance(String algorithm, Provider provider) argument 141 private final Provider provider; field in class:KeyManagerFactory 159 KeyManagerFactory(KeyManagerFactorySpi factorySpi, Provider provider, String algorithm) argument [all...] |
H A D | SSLContext.java | 89 * if no installed provider can provide the requested protocol 99 return new SSLContext((SSLContextSpi) sap.spi, sap.provider, protocol); 104 * the specified provider. 108 * @param provider 109 * the name of the provider that provides the requested protocol. 112 * if the specified provider cannot provider the requested 115 * if the specified provider does not exits. 120 public static SSLContext getInstance(String protocol, String provider) argument 122 if (provider 151 getInstance(String protocol, Provider provider) argument 163 private final Provider provider; field in class:SSLContext 179 SSLContext(SSLContextSpi contextSpi, Provider provider, String protocol) argument [all...] |
/libcore/luni/src/main/java/java/nio/channels/ |
H A D | Pipe.java | 38 * @param provider 39 * the provider of the channel. 41 protected SinkChannel(SelectorProvider provider) { argument 42 super(provider); 64 * @param provider 65 * the provider of the channel. 67 protected SourceChannel(SelectorProvider provider) { argument 68 super(provider); 89 return SelectorProvider.provider().openPipe();
|
/libcore/luni/src/main/java/java/nio/channels/spi/ |
H A D | SelectorProvider.java | 35 * <p>A provider instance can be retrieved through a system property or the 36 * configuration file in a jar file; if no provider is available that way then 37 * the system default provider is returned. 41 private static SelectorProvider provider = null; field in class:SelectorProvider 50 * Gets a provider instance by executing the following steps when called for 54 * set, the value of this property is the class name of the provider 56 * <li>if there is a provider-configuration file named 59 * provider's class name; </li> 60 * <li> otherwise, a system default provider will be returned.</li> 63 * @return the provider 65 synchronized public static SelectorProvider provider() { method in class:SelectorProvider [all...] |
/libcore/luni/src/main/java/org/apache/harmony/security/provider/cert/ |
H A D | DRLCertFactory.java | 23 package org.apache.harmony.security.provider.cert; 34 * Constructs the instance of the certificate factory provider. 37 // specification of the provider name, version, and description. 40 put("CertificateFactory.X509", "org.apache.harmony.security.provider.cert.X509CertFactoryImpl");
|
/libcore/luni/src/test/java/libcore/javax/crypto/ |
H A D | ECDHKeyAgreementTest.java | 86 throw new RuntimeException("Failed to decode KAT key pairs using default provider", e); 134 void testGetAlgorithm(Provider provider) throws Exception { argument 135 assertEquals("ECDH", getKeyAgreement(provider).getAlgorithm()); 142 void testGetProvider(Provider provider) throws Exception { argument 143 assertSame(provider, getKeyAgreement(provider).getProvider()); 150 void testInit_withNullPrivateKey(Provider provider) throws Exception { argument 151 KeyAgreement keyAgreement = getKeyAgreement(provider); 162 void testInit_withUnsupportedPrivateKeyType(Provider provider) throws Exception { argument 163 KeyAgreement keyAgreement = getKeyAgreement(provider); 174 testInit_withUnsupportedAlgorithmParameterSpec(Provider provider) argument 185 testDoPhase_whenNotInitialized(Provider provider) argument 196 testDoPhaseReturnsNull(Provider provider) argument 206 testDoPhase_withPhaseWhichIsNotLast(Provider provider) argument 219 testDoPhase_withNullKey(Provider provider) argument 232 testDoPhase_withInvalidKeyType(Provider provider) argument 245 testGenerateSecret_withNullOutputBuffer(Provider provider) argument 259 testGenerateSecret_withBufferOfTheRightSize(Provider provider) argument 274 testGenerateSecret_withLargerThatNeededBuffer(Provider provider) argument 297 testGenerateSecret_withSmallerThanNeededBuffer(Provider provider) argument 313 testGenerateSecret_withoutBuffer(Provider provider) argument 326 testGenerateSecret_withAlgorithm(Provider provider) argument 392 getPrivateKey(byte[] pkcs8EncodedKey, Provider provider) argument 398 getPublicKey(byte[] x509EncodedKey, Provider provider) argument 416 getKeyAgreement(Provider provider) argument [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/nio/tests/java/nio/channels/spi/ |
H A D | AbstractSelectorTest.java | 34 * @tests AbstractSelector#provider() 38 .provider()); 40 assertSame(SelectorProvider.provider(), mockSelector.provider()); 42 assertNull(mockSelector.provider()); 50 SelectorProvider.provider()); 61 SelectorProvider.provider()); 68 mockSelector = new MockAbstractSelector(SelectorProvider.provider()); 104 Selector acceptSelector = SelectorProvider.provider().openSelector(); 114 Selector acceptSelector = SelectorProvider.provider() [all...] |