AuthCredentials Class

  • java.lang.Object
    • com.azure.resourcemanager.dataprotection.models.AuthCredentials

Implements

public class AuthCredentials
implements JsonSerializable<AuthCredentials>

Base class for different types of authentication credentials.

Constructor Summary

Constructor Description
AuthCredentials()

Creates an instance of AuthCredentials class.

Method Summary

Modifier and Type Method and Description
static AuthCredentials fromJson(JsonReader jsonReader)

Reads an instance of AuthCredentials from the JsonReader.

String objectType()

Get the objectType property: Type of the specific object - used for deserializing.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

AuthCredentials

public AuthCredentials()

Creates an instance of AuthCredentials class.

Method Details

fromJson

public static AuthCredentials fromJson(JsonReader jsonReader)

Reads an instance of AuthCredentials from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of AuthCredentials if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the AuthCredentials.

objectType

public String objectType()

Get the objectType property: Type of the specific object - used for deserializing.

Returns:

the objectType value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to