I have the following code:
String userCredentials = "username:password"; String basicAuth = Base64.getEncoder().encodeToString(userCredentials.g