currently i am setting as below:

```
connection.setRequestProperty("Authorization", "Basic NDUwNjMyOTc6U2hyaXNo2weQDEy"); 

```

`Basic NDUwNjMyOTc6U2hyaXNo2weQDEy"----------`This part i have generated using postman. but it contains `user` name and `password`.

How to generate this Auth `Basic NDUwNjMyOTc6U2hyaXNo2weQDEy` using java and pass it in `setRequestProperty`.

Thanks in advance :)