Share via


Nonce Class

  • java.lang.Object
    • com.azure.resourcemanager.appservice.models.Nonce

Implements

public final class Nonce
implements JsonSerializable<Nonce>

The configuration settings of the nonce used in the login flow.

Constructor Summary

Constructor Description
Nonce()

Creates an instance of Nonce class.

Method Summary

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

Reads an instance of Nonce from the JsonReader.

String nonceExpirationInterval()

Get the nonceExpirationInterval property: The time after the request is made when the nonce should expire.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Boolean validateNonce()

Get the validateNonce property: false if the nonce should not be validated while completing the login flow; otherwise, true.

Nonce withNonceExpirationInterval(String nonceExpirationInterval)

Set the nonceExpirationInterval property: The time after the request is made when the nonce should expire.

Nonce withValidateNonce(Boolean validateNonce)

Set the validateNonce property: false if the nonce should not be validated while completing the login flow; otherwise, true.

Methods inherited from java.lang.Object

Constructor Details

Nonce

public Nonce()

Creates an instance of Nonce class.

Method Details

fromJson

public static Nonce fromJson(JsonReader jsonReader)

Reads an instance of Nonce from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

nonceExpirationInterval

public String nonceExpirationInterval()

Get the nonceExpirationInterval property: The time after the request is made when the nonce should expire.

Returns:

the nonceExpirationInterval value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

validateNonce

public Boolean validateNonce()

Get the validateNonce property: false if the nonce should not be validated while completing the login flow; otherwise, true.

Returns:

the validateNonce value.

withNonceExpirationInterval

public Nonce withNonceExpirationInterval(String nonceExpirationInterval)

Set the nonceExpirationInterval property: The time after the request is made when the nonce should expire.

Parameters:

nonceExpirationInterval - the nonceExpirationInterval value to set.

Returns:

the Nonce object itself.

withValidateNonce

public Nonce withValidateNonce(Boolean validateNonce)

Set the validateNonce property: false if the nonce should not be validated while completing the login flow; otherwise, true.

Parameters:

validateNonce - the validateNonce value to set.

Returns:

the Nonce object itself.

Applies to