Package io.fathom.cloud.protobuf.DnsModel

Examples of io.fathom.cloud.protobuf.DnsModel.BackendSecretData


    public BackendSecretData getSecretData(BackendData backendData) {
        try {
            Crypter crypter = sharedKeystore.buildCrypter(KEY);

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

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


    AwsExecutor awsExecutor;

    AwsRoute53Client client;

    public void init(BackendData backendData) {
        BackendSecretData secretData = dnsSecrets.getSecretData(backendData);

        String accessKey = secretData.getUsername();
        String secretKey = secretData.getPassword();

        client = new AwsRoute53Client(accessKey, secretKey);
    }
View Full Code Here

TOP

Related Classes of io.fathom.cloud.protobuf.DnsModel.BackendSecretData

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.