Search in sources :

Example 31 with CertificateNotYetValidException

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

the class CertificateNotYetValidExceptionTest method testCertificateNotYetValidException01.

/**
 * Test for <code>CertificateNotYetValidException()</code> constructor
 * Assertion: constructs CertificateNotYetValidException with no detail
 * message
 */
public void testCertificateNotYetValidException01() {
    CertificateNotYetValidException tE = new CertificateNotYetValidException();
    assertNull("getMessage() must return null.", tE.getMessage());
    assertNull("getCause() must return null", tE.getCause());
}
Also used : CertificateNotYetValidException(java.security.cert.CertificateNotYetValidException)

Example 32 with CertificateNotYetValidException

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

the class CertificateNotYetValidExceptionTest method testCertificateNotYetValidException02.

/**
 * Test for <code>CertificateNotYetValidException(String)</code>
 * constructor Assertion: constructs CertificateNotYetValidException with
 * detail message msg. Parameter <code>msg</code> is not null.
 */
public void testCertificateNotYetValidException02() {
    CertificateNotYetValidException tE;
    for (int i = 0; i < msgs.length; i++) {
        tE = new CertificateNotYetValidException(msgs[i]);
        assertEquals("getMessage() must return: ".concat(msgs[i]), tE.getMessage(), msgs[i]);
        assertNull("getCause() must return null", tE.getCause());
    }
}
Also used : CertificateNotYetValidException(java.security.cert.CertificateNotYetValidException)

Aggregations

CertificateNotYetValidException (java.security.cert.CertificateNotYetValidException)32 CertificateExpiredException (java.security.cert.CertificateExpiredException)26 X509Certificate (java.security.cert.X509Certificate)25 CertificateException (java.security.cert.CertificateException)10 GeneralSecurityException (java.security.GeneralSecurityException)6 Certificate (java.security.cert.Certificate)6 ArrayList (java.util.ArrayList)6 IOException (java.io.IOException)5 KeyStoreException (java.security.KeyStoreException)5 Date (java.util.Date)5 NoSuchAlgorithmException (java.security.NoSuchAlgorithmException)4 Principal (java.security.Principal)4 File (java.io.File)3 FileNotFoundException (java.io.FileNotFoundException)3 MessageFormat (java.text.MessageFormat)3 List (java.util.List)3 FileInputStream (java.io.FileInputStream)2 BigInteger (java.math.BigInteger)2 SocketTimeoutException (java.net.SocketTimeoutException)2 URISyntaxException (java.net.URISyntaxException)2