Package com.intel.mountwilson.manifest

Examples of com.intel.mountwilson.manifest.IManifestStrategyFactory


            logBlankTrustStatus(tblHosts);
            throw new ASException(ErrorCode.AS_INTEL_TXT_NOT_ENABLED, hostName.toString());
        }
       
        IManifestStrategy manifestStrategy;
        IManifestStrategyFactory strategyFactory;

        strategyFactory = new DefaultManifestStrategyFactory();

        manifestStrategy = strategyFactory.getManifestStategy(tblHosts, getEntityManagerFactory());

        try {
            long start = System.currentTimeMillis();
           
            pcrManifestMap = manifestStrategy.getManifest(tblHosts);
View Full Code Here


    public String getHostAttestationReport(Hostname hostName) {
        XMLOutputFactory xof = XMLOutputFactory.newInstance();
        XMLStreamWriter xtw;
        StringWriter sw = new StringWriter();
        IManifestStrategy manifestStrategy;
        IManifestStrategyFactory strategyFactory;
        HashMap<String, ? extends IManifest> pcrManifestMap = null;
        TblHosts tblHosts = null;
        String attestationReport = "";

        try {

            tblHosts = new TblHostsJpaController(getEntityManagerFactory()).findByName(hostName.toString());

            if (tblHosts == null) {
                throw new ASException(ErrorCode.AS_HOST_NOT_FOUND, hostName.toString());
            }

            // BUG #497 needs to use HostAgentFactory and HostAgent
            strategyFactory = new DefaultManifestStrategyFactory();

            manifestStrategy = strategyFactory.getManifestStategy(tblHosts, getEntityManagerFactory());
            pcrManifestMap = manifestStrategy.getManifest(tblHosts); // BUG #497  this is now obtained by IntelHostAgent using TAHelper's getQuoteInformationForHost which is what was called by TrustAgentManifestStrategy.getManifest()

        } catch (ASException aex) {

            throw aex;
View Full Code Here

TOP

Related Classes of com.intel.mountwilson.manifest.IManifestStrategyFactory

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.