Package com.google.dataconnector.protocol.proto.SdcFrame

Examples of com.google.dataconnector.protocol.proto.SdcFrame.ServerSuppliedConf


        throw new RegistrationException("Registration failed");
      }
      LOG.debug("Received response to resource registration request\n" + regResponse.toString());

      if (regResponse.hasServerSuppliedConf()) {
        ServerSuppliedConf serverSuppliedConf = regResponse.getServerSuppliedConf();
        LOG.info("registration successful. Received config info from the SDC server\n" +
            regResponse.getServerSuppliedConf().toString());
        healthCheckHandler.setServerSuppliedConf(serverSuppliedConf);
       
        // Support for session-based encryption:
        if (serverSuppliedConf.hasKeyAlgo() && serverSuppliedConf.hasKeyBytes()) {
          this.sdcKeysManager.storeSessionKey(
              serverSuppliedConf.getSessionId(),
              serverSuppliedConf.getKeyAlgo(),
              serverSuppliedConf.getKeyBytes().toByteArray());
        }
      }
    } catch (InvalidProtocolBufferException e) {
      throw new RegistrationException(e);
    } catch (AgentConfigurationException e) {
View Full Code Here

TOP

Related Classes of com.google.dataconnector.protocol.proto.SdcFrame.ServerSuppliedConf

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.