Search in sources :

Example 56 with X509CRLSelector

use of java.security.cert.X509CRLSelector in project j2objc by google.

the class X509CRLSelectorTest method test_setIssuerNamesLjava_util_Collection01.

/**
 * setIssuerNames(Collection <?> names)
 */
public void test_setIssuerNamesLjava_util_Collection01() throws IOException {
    // Regression for HARMONY-737
    X509CRLSelector selector = new X509CRLSelector();
    selector.setIssuerNames(new TreeSet<Comparable>() {

        private static final long serialVersionUID = 6009545505321092498L;

        public Iterator<Comparable> iterator() {
            return null;
        }
    });
}
Also used : Iterator(java.util.Iterator) X509CRLSelector(java.security.cert.X509CRLSelector)

Example 57 with X509CRLSelector

use of java.security.cert.X509CRLSelector in project j2objc by google.

the class X509CRLSelectorTest method test_addIssuerNameLjava_lang_String02.

/**
 * java.security.cert.X509CRLSelector#addIssuerName(java.lang.String)
 */
public void test_addIssuerNameLjava_lang_String02() throws IOException {
    // Regression for HARMONY-736
    X509CRLSelector selector = new X509CRLSelector();
    // no exception for null
    selector.addIssuerName((String) null);
}
Also used : X509CRLSelector(java.security.cert.X509CRLSelector)

Example 58 with X509CRLSelector

use of java.security.cert.X509CRLSelector in project j2objc by google.

the class X509CRLSelectorTest method test_addIssuerName$B_3.

/**
 * java.security.cert.X509CRLSelector#addIssuerName(byte[])
 */
public void test_addIssuerName$B_3() throws Exception {
    // Regression for HARMONY-465
    X509CRLSelector obj = new X509CRLSelector();
    try {
        obj.addIssuerName(new byte[] { (byte) 2, (byte) 3, (byte) 4 });
        fail("IOException expected");
    } catch (IOException e) {
    // expected
    }
}
Also used : IOException(java.io.IOException) X509CRLSelector(java.security.cert.X509CRLSelector)

Aggregations

X509CRLSelector (java.security.cert.X509CRLSelector)58 X500Principal (javax.security.auth.x500.X500Principal)19 IOException (java.io.IOException)13 BigInteger (java.math.BigInteger)12 Date (java.util.Date)8 X509CRL (java.security.cert.X509CRL)7 X509Certificate (java.security.cert.X509Certificate)5 ByteArrayInputStream (java.io.ByteArrayInputStream)4 CRL (java.security.cert.CRL)4 CertStoreException (java.security.cert.CertStoreException)4 CertificateFactory (java.security.cert.CertificateFactory)4 ArrayList (java.util.ArrayList)4 AndroidOnly (dalvik.annotation.AndroidOnly)3 KeyStoreException (java.security.KeyStoreException)3 URI (java.net.URI)2 NoSuchAlgorithmException (java.security.NoSuchAlgorithmException)2 UnrecoverableEntryException (java.security.UnrecoverableEntryException)2 UnrecoverableKeyException (java.security.UnrecoverableKeyException)2 CertStore (java.security.cert.CertStore)2 CertificateException (java.security.cert.CertificateException)2