Examples of TADataContext


Examples of com.intel.mountwilson.trustagent.data.TADataContext

    Logger log = LoggerFactory.getLogger(getClass().getName());
    private TADataContext context;

    public static void main(String[] args) throws TAException {
        TADataContext ctx = new TADataContext();
        CreateIdentityCmd cmd = new CreateIdentityCmd(ctx);
        cmd.execute();
    }
View Full Code Here

Examples of com.intel.mountwilson.trustagent.data.TADataContext

public class TrustAgent {

    static Logger log = LoggerFactory.getLogger(TrustAgent.class.getName());

    public TrustAgent() {
        TADataContext context = new TADataContext();
        try {
            File file = new File(context.getDataFolder());


            if (!file.isDirectory()) {
                file.mkdir();
                log.info("Data folder was not there created : " + context.getDataFolder());
            }


        } catch (Exception e) {
            log.error( "Error while creating data folder ", e);
View Full Code Here

Examples of com.intel.mountwilson.trustagent.data.TADataContext

        }

    }

    public boolean takeOwnerShip() {
        TADataContext context = new TADataContext();
        try {
            new TakeOwnershipCmd(context).execute();
        } catch (Exception e) {
            log.error( null, e);
            return false;
View Full Code Here

Examples of com.intel.mountwilson.trustagent.data.TADataContext

        }
    }

    private String processQuoteRequestInput(String xmlInput) {
        try {
            TADataContext context = new TADataContext();

            context.setNonce(getNonce(xmlInput));
            context.setSelectedPCRs(getSelectedPCRs(xmlInput));

            validateCertFile();

            new CreateNonceFileCmd(context).execute();
            new ReadIdentityCmd(context).execute();
            new GenerateQuoteCmd(context).execute();
            new BuildQuoteXMLCmd(context).execute();

            return context.getResponseXML();

        } catch (TAException ex) {
            log.error( null, ex);
            return generateErrorResponse(ex.getErrorCode(), ex.getMessage());
        }
View Full Code Here

Examples of com.intel.mountwilson.trustagent.data.TADataContext

        }
    }

    private String processIdentityRequestInput(String xmlInput) {
        try {
            TADataContext context = new TADataContext();

            new CreateIdentityCmd(context).execute();
            new BuildIdentityXMLCmd(context).execute();

            return context.getResponseXML();

        } catch (TAException ex) {
           log.error("Error in processIdentityRequestInput", ex);
            return generateErrorResponse(ex.getErrorCode(), ex.getMessage());
        }
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.