Examples of TAException


Examples of com.intel.mountwilson.common.TAException

      /*String result = */CommandUtil.runCommand(commandLine);
      log.info("Create the quote {} ",
          context.getQuoteFileName());
      context.setTpmQuote(CommandUtil.readfile(context.getQuoteFileName()));
    }catch (Exception e) {
      throw new TAException(ErrorCode.COMMAND_ERROR, "Error while generating quote" ,e);
    }

    }
View Full Code Here

Examples of com.intel.mountwilson.common.TAException

         
          log.info("AIK Certificate Read to memory - {}", context.getAikCertFileName());

    } catch (Exception e) {
     
      throw new TAException(ErrorCode.COMMAND_ERROR, "Error while creating identity.",e);
    }
    }
View Full Code Here

Examples of com.intel.mountwilson.common.TAException

            context.setAIKCertificate(CommandUtil.readCertificate(context.getAikCertFileName())); // this file name is configured ;it is NOT user input

            log.info("AIK Certificate Read to memory - {}", context.getAikCertFileName());
        }else{
            throw new TAException(ErrorCode.CERT_MISSING,"Aik Certificate file is missing.");
        }
    }
View Full Code Here

Examples of com.intel.mountwilson.common.TAException

     
      stream.flush();
     
     
    } catch (Exception e) {
      throw new TAException(ErrorCode.ERROR, "Error while creating the nonce file" ,e);
    } finally{
     
        try {
          stream.close();
        } catch (IOException e) {
          log.warn("Error while closing the file stream");
          throw new TAException(ErrorCode.ERROR, "Error while closing file",e );
         
        }
    }
    }
View Full Code Here

Examples of com.intel.mountwilson.common.TAException

    public void execute() throws TAException{
        try {
      ProvisionTPM.takeOwnership();
            log.info("Take ownership command executed successfully");
  }catch (Exception e) {
     throw new TAException(ErrorCode.ERROR, "Error while taking ownership",e);
  }

    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.