I am using 1.0.0-beta4.1 Azure Java SDK. This is my code for authentication
// TODO Auto-generated method stub
String client = "xxxxxxxxxxx";
String tenant = "xxxxxxxxxxx";
String key = "xxxxxxxxxxx";
String subscriptionId = "xxxxxxxxxxx";
ApplicationTokenCredentials credentials = new ApplicationTokenCredentials(client, tenant, key, AzureEnvironment.AZURE);
Azure azure = Azure.authenticate(credentials).withSubscription(subscriptionId);
System.out.println("Listing all resource groups");
The code doesn't throw any error in case of incorrect credentials. Is there any way to find whether the authentication was successful or not.