public static String encodeBase64(final byte[] data) {
        return Base64.encodeBase64String(data);
    }
Base64-encode the given byte[] as a string.

@param data the byte array to encode
@return the encoded string
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/EncodingUtils.java