Package org.ejbca.core.model.ca.caadmin

Examples of org.ejbca.core.model.ca.caadmin.CADoesntExistsException


                      if (log.isDebugEnabled()) {
                        log.debug("Using CA from username: "+req.getUsername());
                      }
                    } else {
                        String msg = intres.getLocalizedMessage("signsession.canotfoundissuerusername", dn, "null");         
                        throw new CADoesntExistsException(msg);
                    }
              }
            } else if (req.getUsername() != null) {
                ca = getCAFromUsername(admin, req);
              if (log.isDebugEnabled()) {
                log.debug("Using CA from username: "+req.getUsername());
              }
            } else {
                throw new CADoesntExistsException(intres.getLocalizedMessage("signsession.canotfoundissuerusername", req.getIssuerDN(), req.getUsername()));
            }
        } catch (ObjectNotFoundException e) {
            throw new CADoesntExistsException(intres.getLocalizedMessage("signsession.canotfoundissuerusername", req.getIssuerDN(), req.getUsername()));
    }
       
        if (ca.getStatus() != SecConst.CA_ACTIVE) {
          String msg = intres.getLocalizedMessage("signsession.canotactive", ca.getSubjectDN());
          logSession.log(admin, ca.getCAId(), LogConstants.MODULE_CA, new java.util.Date(), null, null, LogConstants.EVENT_ERROR_CREATECERTIFICATE, msg);
View Full Code Here

TOP

Related Classes of org.ejbca.core.model.ca.caadmin.CADoesntExistsException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.