File tree Expand file tree Collapse file tree
modules/systemtests/src-test/org/ejbca/core/protocol Expand file tree Collapse file tree Original file line number Diff line number Diff line change 149149import org .cesecore .certificates .certificate .CertificateRevokeException ;
150150import org .cesecore .certificates .certificate .CertificateStoreSessionRemote ;
151151import org .cesecore .certificates .certificate .IllegalKeyException ;
152- import org .cesecore .certificates .certificate .InternalCertificateStoreSessionRemote ;
153152import org .cesecore .certificates .certificate .exception .CertificateSerialNumberException ;
154153import org .cesecore .certificates .certificate .exception .CustomCertificateSerialNumberException ;
155154import org .cesecore .certificates .certificate .request .ResponseStatus ;
@@ -309,14 +308,8 @@ private void cleanup() throws AuthorizationDeniedException {
309308 }
310309
311310 protected final void removeCAs (CA [] cas ) throws AuthorizationDeniedException {
312- final InternalCertificateStoreSessionRemote internalCertificateStoreSession = EjbRemoteHelper .INSTANCE .getRemoteSession (
313- InternalCertificateStoreSessionRemote .class , EjbRemoteHelper .MODULE_TEST );
314311 for (CA ca : cas ) {
315312 if (ca != null ) {
316-
317- // Delete certs issued by the CA
318- internalCertificateStoreSession .removeCertificatesByIssuer ( ca .getSubjectDN ());
319-
320313 CaTestUtils .removeCa (ADMIN , ca .getCAInfo ());
321314 }
322315 }
Original file line number Diff line number Diff line change @@ -147,9 +147,6 @@ public static void beforeClass() throws Exception {
147147
148148 @ AfterClass
149149 public static void tearDownFinal () throws RoleNotFoundException , AuthorizationDeniedException {
150- // Remove issued certs
151- internalCertStoreSession .removeCertificatesByIssuer (ISSUER_DN );
152-
153150 if (testx509ca != null ) {
154151 CaTestUtils .removeCa (ADMIN , testx509ca .getCAInfo ());
155152 }
@@ -802,7 +799,6 @@ public void test06CrmfEcdsaCA() throws Exception {
802799 } finally {
803800 try {
804801 this .endEntityManagementSession .deleteUser (ADMIN , userName1 );
805- internalCertStoreSession .removeCertificatesByUsername (userName1 );
806802 } catch (NoSuchEndEntityException e ) {// Do nothing
807803 }
808804 }
Original file line number Diff line number Diff line change @@ -505,7 +505,6 @@ public void test08OcspEcdsaGood() throws Exception {
505505 } finally {
506506 endEntityManagementSession .deleteUser (admin , "ocsptest" );
507507 CryptoTokenTestUtils .removeCryptoToken (admin , caInfo .getCAToken ().getCryptoTokenId ());
508- internalCertStoreSession .removeCertificatesByIssuer ( caInfo .getSubjectDN ());
509508 }
510509 } // test08OcspEcdsaGood
511510
You can’t perform that action at this time.
0 commit comments