public static Credentials getDecodedCredentials(String encodedCredentials, char separator) {
        if (StringUtils.isBlank(encodedCredentials)) {
            return null;
        }
        Credentials credentials = new Credentials();
        String decodedAuth = EncodeDecodeUtil.decode(encodedCredentials);
        int delimiter = decodedAuth.indexOf(separator);
        if (delimiter > 0) {
            credentials.setUsername(decodedAuth.substring(0,delimiter));
            credentials.setPassword(decodedAuth.substring(delimiter+1));
        }
        return credentials;
    }
@param encodedCredentials should be base64 encoding of username + separator + password
@param separator
@return Credentials
commons/src/main/java/io/hyscale/commons/utils/EncodeDecodeUtil.java