Examples of HostGroupSecretData


Examples of io.fathom.cloud.protobuf.CloudModel.HostGroupSecretData

    public HostGroupSecretData getSecretData(HostGroupData backendData) {
        try {
            Crypter crypter = sharedKeystore.buildCrypter(KEY);

            byte[] plaintext = crypter.decrypt(backendData.getSecretData().getCiphertext().toByteArray());
            HostGroupSecretData secretData = HostGroupSecretData.parseFrom(plaintext);

            return secretData;
        } catch (Exception e) {
            throw new IllegalArgumentException("Error decrypting backend secret", e);
        }
View Full Code Here

Examples of io.fathom.cloud.protobuf.CloudModel.HostGroupSecretData

                switch (hostGroupData.getHostGroupType()) {
                case HOST_GROUP_TYPE_RAW:
                    datacenter = new RawDatacenterManager();
                    break;
                case HOST_GROUP_TYPE_AMAZON_EC2:
                    HostGroupSecretData secretData = computeSecrets.getSecretData(hostGroupData);
                    datacenter = new Ec2DatacenterManager(hostGroupData, secretData);
                    break;
                default:
                    throw new IllegalStateException();
                }
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.