Package org.ejbca.extra.db

Examples of org.ejbca.extra.db.KeyStoreRetrievalRequest


  /**
   * @see org.ejbca.externalra.gui.IRequestDispatcher#getKeyStoreResponse(java.lang.String, java.lang.String)
   */
  public ResponseData getKeyStoreResponse(String username, String password) {
    ResponseData keyStoreResponse = null;
    KeyStoreRetrievalResponse responseSub = (KeyStoreRetrievalResponse) getResponseFromCA(new KeyStoreRetrievalRequest(random.nextLong(), username, password));
    if (responseSub != null) {
      if (responseSub.isSuccessful()) {
        keyStoreResponse = new ResponseData(responseSub.getKeyStoreData(), responseSub.getKeyStoreType(), null);
      } else {
        keyStoreResponse = new ResponseData(null, 0, responseSub.getFailInfo());
View Full Code Here


    ExtRAResponse resp = (ExtRAResponse) submessagesresp.getSubMessages().iterator().next();
    assertTrue("Wrong Request ID: " + resp.getRequestId(), resp.getRequestId() == requestId);
    assertTrue("Edit user failed", resp.isSuccessful() == true);
    // Try to retrieve keystore
    requestId = random.nextLong();
    KeyStoreRetrievalRequest keyStoreRetrievalRequest = new KeyStoreRetrievalRequest(requestId, username, password);
    smgs = new SubMessages(null,null,null);
    smgs.addSubMessage(keyStoreRetrievalRequest);
    msghome.create(username+"ks", smgs);
        msg = waitForUser(username+"ks");
    assertNotNull("No response.", msg);
View Full Code Here

TOP

Related Classes of org.ejbca.extra.db.KeyStoreRetrievalRequest

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.