Aracılığıyla paylaş


Authentication Class

  • java.lang.Object
    • com.azure.resourcemanager.databoxedge.models.Authentication

Implements

public final class Authentication
implements JsonSerializable<Authentication>

Authentication mechanism for IoT devices.

Constructor Summary

Constructor Description
Authentication()

Creates an instance of Authentication class.

Method Summary

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

Reads an instance of Authentication from the JsonReader.

SymmetricKey symmetricKey()

Get the symmetricKey property: Symmetric key for authentication.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Authentication withSymmetricKey(SymmetricKey symmetricKey)

Set the symmetricKey property: Symmetric key for authentication.

Methods inherited from java.lang.Object

Constructor Details

Authentication

public Authentication()

Creates an instance of Authentication class.

Method Details

fromJson

public static Authentication fromJson(JsonReader jsonReader)

Reads an instance of Authentication from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of Authentication 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 Authentication.

symmetricKey

public SymmetricKey symmetricKey()

Get the symmetricKey property: Symmetric key for authentication.

Returns:

the symmetricKey value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withSymmetricKey

public Authentication withSymmetricKey(SymmetricKey symmetricKey)

Set the symmetricKey property: Symmetric key for authentication.

Parameters:

symmetricKey - the symmetricKey value to set.

Returns:

the Authentication object itself.

Applies to