Search in sources :

Example 36 with CollectionCertStoreParameters

use of java.security.cert.CollectionCertStoreParameters in project robovm by robovm.

the class CollectionCertStoreParametersTest method testToString02.

/**
     * Test #2 for <code>toString()</code> method<br>
     */
public final void testToString02() {
    Vector<Certificate> certificates = new Vector<Certificate>();
    certificates.add(new MyCertificate("TEST", new byte[] { (byte) 4 }));
    CollectionCertStoreParameters cp = new CollectionCertStoreParameters(certificates);
    assertNotNull(cp.toString());
}
Also used : MyCertificate(org.apache.harmony.security.tests.support.cert.MyCertificate) CollectionCertStoreParameters(java.security.cert.CollectionCertStoreParameters) Vector(java.util.Vector) Certificate(java.security.cert.Certificate) MyCertificate(org.apache.harmony.security.tests.support.cert.MyCertificate)

Example 37 with CollectionCertStoreParameters

use of java.security.cert.CollectionCertStoreParameters in project robovm by robovm.

the class CollectionCertStoreParametersTest method testToString01.

/**
     * Test #1 for <code>toString()</code> method<br>
     */
public final void testToString01() {
    CollectionCertStoreParameters cp = new CollectionCertStoreParameters();
    String s = cp.toString();
    assertNotNull(s);
}
Also used : CollectionCertStoreParameters(java.security.cert.CollectionCertStoreParameters)

Example 38 with CollectionCertStoreParameters

use of java.security.cert.CollectionCertStoreParameters in project robovm by robovm.

the class CollectionCertStoreParametersTest method testCollectionCertStoreParameters01.

//
// Tests
//
/**
     * Test #1 for <code>CollectionCertStoreParameters()</code> constructor<br>
     */
public final void testCollectionCertStoreParameters01() {
    CertStoreParameters cp = new CollectionCertStoreParameters();
    assertTrue("isCollectionCertStoreParameters", cp instanceof CollectionCertStoreParameters);
}
Also used : CollectionCertStoreParameters(java.security.cert.CollectionCertStoreParameters) CertStoreParameters(java.security.cert.CertStoreParameters) CollectionCertStoreParameters(java.security.cert.CollectionCertStoreParameters)

Example 39 with CollectionCertStoreParameters

use of java.security.cert.CollectionCertStoreParameters in project robovm by robovm.

the class CollectionCertStoreParametersTest method testGetCollection02.

/**
     * Test #2 for <code>getCollection()</code> method<br>
     */
public final void testGetCollection02() {
    Vector certificates = new Vector();
    CollectionCertStoreParameters cp = new CollectionCertStoreParameters(certificates);
    assertNotNull(cp.getCollection());
}
Also used : CollectionCertStoreParameters(java.security.cert.CollectionCertStoreParameters) Vector(java.util.Vector)

Example 40 with CollectionCertStoreParameters

use of java.security.cert.CollectionCertStoreParameters in project robovm by robovm.

the class CollectionCertStoreParametersTest method testCollectionCertStoreParametersCollection01.

/**
     * Test #1 for <code>CollectionCertStoreParameters(Collection)</code>
     * constructor<br>
     */
public final void testCollectionCertStoreParametersCollection01() {
    Vector<Certificate> certificates = new Vector<Certificate>();
    certificates.add(new MyCertificate("TEST", new byte[] {}));
    new CollectionCertStoreParameters(certificates);
}
Also used : MyCertificate(org.apache.harmony.security.tests.support.cert.MyCertificate) CollectionCertStoreParameters(java.security.cert.CollectionCertStoreParameters) Vector(java.util.Vector) Certificate(java.security.cert.Certificate) MyCertificate(org.apache.harmony.security.tests.support.cert.MyCertificate)

Aggregations

CollectionCertStoreParameters (java.security.cert.CollectionCertStoreParameters)64 X509CertSelector (java.security.cert.X509CertSelector)31 PKIXBuilderParameters (java.security.cert.PKIXBuilderParameters)30 X509Certificate (java.security.cert.X509Certificate)27 CertStore (java.security.cert.CertStore)23 Certificate (java.security.cert.Certificate)21 ArrayList (java.util.ArrayList)18 NoSuchAlgorithmException (java.security.NoSuchAlgorithmException)15 CertPathBuilder (java.security.cert.CertPathBuilder)15 HashSet (java.util.HashSet)14 TrustAnchor (java.security.cert.TrustAnchor)13 Vector (java.util.Vector)12 CertStoreParameters (java.security.cert.CertStoreParameters)11 IOException (java.io.IOException)10 InvalidAlgorithmParameterException (java.security.InvalidAlgorithmParameterException)10 MyCertificate (org.apache.harmony.security.tests.support.cert.MyCertificate)10 KeyStoreException (java.security.KeyStoreException)8 PKIXCertPathBuilderResult (java.security.cert.PKIXCertPathBuilderResult)8 CertPath (java.security.cert.CertPath)7 CertPathBuilderException (java.security.cert.CertPathBuilderException)7