java.lang.Object
com.azure.resourcemanager.appservice.models.Nonce
All Implemented Interfaces:
com.azure.json.JsonSerializable<Nonce>

public final class Nonce extends Object implements com.azure.json.JsonSerializable<Nonce>
The configuration settings of the nonce used in the login flow.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance of Nonce class.
  • Method Summary

    Modifier and Type
    Method
    Description
    static Nonce
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of Nonce from the JsonReader.
    Get the nonceExpirationInterval property: The time after the request is made when the nonce should expire.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    void
    Validates the instance.
    Get the validateNonce property: <code>false</code> if the nonce should not be validated while completing the login flow; otherwise, <code>true</code>.
    withNonceExpirationInterval(String nonceExpirationInterval)
    Set the nonceExpirationInterval property: The time after the request is made when the nonce should expire.
    withValidateNonce(Boolean validateNonce)
    Set the validateNonce property: <code>false</code> if the nonce should not be validated while completing the login flow; otherwise, <code>true</code>.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.azure.json.JsonSerializable

    toJson, toJson, toJsonBytes, toJsonString
  • Constructor Details

    • Nonce

      public Nonce()
      Creates an instance of Nonce class.
  • Method Details

    • validateNonce

      public Boolean validateNonce()
      Get the validateNonce property: <code>false</code> if the nonce should not be validated while completing the login flow; otherwise, <code>true</code>.
      Returns:
      the validateNonce value.
    • withValidateNonce

      public Nonce withValidateNonce(Boolean validateNonce)
      Set the validateNonce property: <code>false</code> if the nonce should not be validated while completing the login flow; otherwise, <code>true</code>.
      Parameters:
      validateNonce - the validateNonce value to set.
      Returns:
      the Nonce object itself.
    • nonceExpirationInterval

      public String nonceExpirationInterval()
      Get the nonceExpirationInterval property: The time after the request is made when the nonce should expire.
      Returns:
      the nonceExpirationInterval 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.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<Nonce>
      Throws:
      IOException
    • fromJson

      public static Nonce fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.