use of com.microsoft.azuretools.authmanage.models.AuthMethodDetails in project azure-tools-for-java by Microsoft.
the class AuthMethodManager method loadSettings.
private void loadSettings() throws IOException {
System.out.println("loading authMethodDetails...");
FileStorage fs = new FileStorage(CommonSettings.authMethodDetailsFileName, CommonSettings.settingsBaseDir);
byte[] data = fs.read();
String json = new String(data);
if (json.isEmpty()) {
System.out.println(CommonSettings.authMethodDetailsFileName + "file is empty");
authMethodDetails = new AuthMethodDetails();
return;
}
authMethodDetails = JsonHelper.deserialize(AuthMethodDetails.class, json);
}
Aggregations