Class AuthorizationServerSecretsContractInner

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

public final class AuthorizationServerSecretsContractInner extends Object implements com.azure.json.JsonSerializable<AuthorizationServerSecretsContractInner>
OAuth Server Secrets Contract.
  • Constructor Details

    • AuthorizationServerSecretsContractInner

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

    • clientSecret

      public String clientSecret()
      Get the clientSecret property: oAuth Authorization Server Secrets.
      Returns:
      the clientSecret value.
    • withClientSecret

      public AuthorizationServerSecretsContractInner withClientSecret(String clientSecret)
      Set the clientSecret property: oAuth Authorization Server Secrets.
      Parameters:
      clientSecret - the clientSecret value to set.
      Returns:
      the AuthorizationServerSecretsContractInner object itself.
    • resourceOwnerUsername

      public String resourceOwnerUsername()
      Get the resourceOwnerUsername property: Can be optionally specified when resource owner password grant type is supported by this authorization server. Default resource owner username.
      Returns:
      the resourceOwnerUsername value.
    • withResourceOwnerUsername

      public AuthorizationServerSecretsContractInner withResourceOwnerUsername(String resourceOwnerUsername)
      Set the resourceOwnerUsername property: Can be optionally specified when resource owner password grant type is supported by this authorization server. Default resource owner username.
      Parameters:
      resourceOwnerUsername - the resourceOwnerUsername value to set.
      Returns:
      the AuthorizationServerSecretsContractInner object itself.
    • resourceOwnerPassword

      public String resourceOwnerPassword()
      Get the resourceOwnerPassword property: Can be optionally specified when resource owner password grant type is supported by this authorization server. Default resource owner password.
      Returns:
      the resourceOwnerPassword value.
    • withResourceOwnerPassword

      public AuthorizationServerSecretsContractInner withResourceOwnerPassword(String resourceOwnerPassword)
      Set the resourceOwnerPassword property: Can be optionally specified when resource owner password grant type is supported by this authorization server. Default resource owner password.
      Parameters:
      resourceOwnerPassword - the resourceOwnerPassword value to set.
      Returns:
      the AuthorizationServerSecretsContractInner 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<AuthorizationServerSecretsContractInner>
      Throws:
      IOException
    • fromJson

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