Search in sources :

Example 11 with SpiEngUtils

use of org.apache.harmony.security.tests.support.SpiEngUtils in project robovm by robovm.

the class TrustManagerFactory2Test method setUp.

protected void setUp() throws Exception {
    super.setUp();
    mProv = (new SpiEngUtils()).new MyProvider("MyTMFProvider", "Provider for testing", srvTrustManagerFactory.concat(".").concat(defaultAlg), TrustManagerFactoryProviderClass);
    Security.insertProviderAt(mProv, 1);
}
Also used : SpiEngUtils(org.apache.harmony.security.tests.support.SpiEngUtils)

Example 12 with SpiEngUtils

use of org.apache.harmony.security.tests.support.SpiEngUtils in project robovm by robovm.

the class KeyPairGenerator2Test method setProv.

protected void setProv() {
    mProv = (new SpiEngUtils()).new MyProvider("MyKPGenProvider".concat(post), "Testing provider", KeyPairGenerator1Test.srvKeyPairGenerator.concat(".").concat(defaultAlg.concat(post)), KeyPairGeneratorProviderClass);
    Security.insertProviderAt(mProv, 1);
}
Also used : SpiEngUtils(org.apache.harmony.security.tests.support.SpiEngUtils)

Example 13 with SpiEngUtils

use of org.apache.harmony.security.tests.support.SpiEngUtils in project robovm by robovm.

the class KeyManagerFactory2Test method setUp.

protected void setUp() throws Exception {
    super.setUp();
    mProv = (new SpiEngUtils()).new MyProvider("MyKMFProvider", "Provider for testing", srvKeyManagerFactory.concat(".").concat(defaultAlg), KeyManagerFactoryProviderClass);
    Security.insertProviderAt(mProv, 2);
}
Also used : SpiEngUtils(org.apache.harmony.security.tests.support.SpiEngUtils)

Example 14 with SpiEngUtils

use of org.apache.harmony.security.tests.support.SpiEngUtils in project robovm by robovm.

the class SSLContext2Test method setUp.

protected void setUp() throws Exception {
    super.setUp();
    mProv = (new SpiEngUtils()).new MyProvider("MySSLContextProvider", "Provider for testing", srvSSLContext.concat(".").concat(defaultProtocol), SSLContextProviderClass);
    Security.insertProviderAt(mProv, 1);
}
Also used : SpiEngUtils(org.apache.harmony.security.tests.support.SpiEngUtils)

Example 15 with SpiEngUtils

use of org.apache.harmony.security.tests.support.SpiEngUtils in project robovm by robovm.

the class CertPathBuilder2Test method setUp.

protected void setUp() throws Exception {
    super.setUp();
    mProv = (new SpiEngUtils()).new MyProvider("MyCertPathBuilderProvider", "Provider for testing", CertPathBuilder1Test.srvCertPathBuilder + "." + defaultAlg, CertPathBuilderProviderClass);
    Security.insertProviderAt(mProv, 1);
}
Also used : MyProvider(tests.security.cert.myCertPathBuilder.MyProvider) SpiEngUtils(org.apache.harmony.security.tests.support.SpiEngUtils)

Aggregations

SpiEngUtils (org.apache.harmony.security.tests.support.SpiEngUtils)23 Provider (java.security.Provider)14 ExemptionMechanism (javax.crypto.ExemptionMechanism)14 Key (java.security.Key)11 MyExemptionMechanismSpi.tmpKey (org.apache.harmony.crypto.tests.support.MyExemptionMechanismSpi.tmpKey)11 MyExemptionMechanismSpi (org.apache.harmony.crypto.tests.support.MyExemptionMechanismSpi)10 ExemptionMechanismException (javax.crypto.ExemptionMechanismException)6 InvalidKeyException (java.security.InvalidKeyException)4 SecureRandom (java.security.SecureRandom)3 KeyGenerator (javax.crypto.KeyGenerator)3 InvalidAlgorithmParameterException (java.security.InvalidAlgorithmParameterException)2 NoSuchAlgorithmException (java.security.NoSuchAlgorithmException)2 ShortBufferException (javax.crypto.ShortBufferException)2 BigInteger (java.math.BigInteger)1 RSAKeyGenParameterSpec (java.security.spec.RSAKeyGenParameterSpec)1 ExemptionMechanismSpi (javax.crypto.ExemptionMechanismSpi)1 MyProvider (tests.security.cert.myCertPathBuilder.MyProvider)1