Class OpenIdAuthenticationSettingsContract

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

public final class OpenIdAuthenticationSettingsContract extends Object implements com.azure.json.JsonSerializable<OpenIdAuthenticationSettingsContract>
API OAuth2 Authentication settings details.
  • Constructor Details

    • OpenIdAuthenticationSettingsContract

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

    • openidProviderId

      public String openidProviderId()
      Get the openidProviderId property: OAuth authorization server identifier.
      Returns:
      the openidProviderId value.
    • withOpenidProviderId

      public OpenIdAuthenticationSettingsContract withOpenidProviderId(String openidProviderId)
      Set the openidProviderId property: OAuth authorization server identifier.
      Parameters:
      openidProviderId - the openidProviderId value to set.
      Returns:
      the OpenIdAuthenticationSettingsContract object itself.
    • bearerTokenSendingMethods

      public List<BearerTokenSendingMethods> bearerTokenSendingMethods()
      Get the bearerTokenSendingMethods property: How to send token to the server.
      Returns:
      the bearerTokenSendingMethods value.
    • withBearerTokenSendingMethods

      public OpenIdAuthenticationSettingsContract withBearerTokenSendingMethods(List<BearerTokenSendingMethods> bearerTokenSendingMethods)
      Set the bearerTokenSendingMethods property: How to send token to the server.
      Parameters:
      bearerTokenSendingMethods - the bearerTokenSendingMethods value to set.
      Returns:
      the OpenIdAuthenticationSettingsContract 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<OpenIdAuthenticationSettingsContract>
      Throws:
      IOException
    • fromJson

      public static OpenIdAuthenticationSettingsContract fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of OpenIdAuthenticationSettingsContract from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of OpenIdAuthenticationSettingsContract 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 OpenIdAuthenticationSettingsContract.