All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.elastisys.scale.cloudpool.aws.commons.client.AmazonApiUtils Maven / Gradle / Ivy

The newest version!
package com.elastisys.scale.cloudpool.aws.commons.client;

import org.apache.commons.codec.binary.Base64;

/**
 * Commonly applicable convenience methods for working against the Amazon AWS
 * client APIs.
 * 
 * 
 */
public class AmazonApiUtils {

    private AmazonApiUtils() {
        throw new IllegalStateException("Not instantiable.");
    }

    /**
     * Encode a string in base
     * 64.
     * 
     * @param input
     *            The input string.
     * @return The input string encoded in
     *         base 64.
     */
    public static String base64Encode(String input) {
        return new String(Base64.encodeBase64(input.getBytes()));
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy