public static String encodeAsString(byte ... bytes) {
        if (bytes == null)
            return null;
        return bytes.length == 0 ? "" : CodecUtils.toStringDirect(codec.encode(bytes)); 
    }
Returns a base 32 encoded string of the given bytes.
aws-java-sdk-core/src/main/java/com/amazonaws/util/Base32.java