Code example for X509Certificate

Methods: getNotBefore

0
    /** 
     * getSerialNumber() method testing. 
     */ 
    @TestTargetNew( 
        level = TestLevel.COMPLETE, 
        notes = "", 
        method = "getSerialNumber", 
        args = {} 
    ) 
    public void testGetSerialNumber() { 
        if (this.cert == null) {
            // The requested certificate type is not available. 
            // Test can not be applied. 
            return; 
        } 
        assertEquals("The serial number is not correct.", tbt_cert
                .getSerialNumber(), cert.getSerialNumber());
    } 
 
    /** 
     * getIssuerDN() method testing.