Class SsoProperties

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

public final class SsoProperties extends Object implements com.azure.json.JsonSerializable<SsoProperties>
Single sign-on related configuration.
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    Get the clientId property: The public identifier for the application.
    Get the clientSecret property: The secret known only to the application and the authorization server.
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of SsoProperties from the JsonReader.
    Get the issuerUri property: The URI of Issuer Identifier.
    Get the scope property: It defines the specific actions applications can be allowed to do on a user's behalf.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    void
    Validates the instance.
    withClientId(String clientId)
    Set the clientId property: The public identifier for the application.
    withClientSecret(String clientSecret)
    Set the clientSecret property: The secret known only to the application and the authorization server.
    withIssuerUri(String issuerUri)
    Set the issuerUri property: The URI of Issuer Identifier.
    Set the scope property: It defines the specific actions applications can be allowed to do on a user's behalf.

    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

    • SsoProperties

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

    • scope

      public List<String> scope()
      Get the scope property: It defines the specific actions applications can be allowed to do on a user's behalf.
      Returns:
      the scope value.
    • withScope

      public SsoProperties withScope(List<String> scope)
      Set the scope property: It defines the specific actions applications can be allowed to do on a user's behalf.
      Parameters:
      scope - the scope value to set.
      Returns:
      the SsoProperties object itself.
    • clientId

      public String clientId()
      Get the clientId property: The public identifier for the application.
      Returns:
      the clientId value.
    • withClientId

      public SsoProperties withClientId(String clientId)
      Set the clientId property: The public identifier for the application.
      Parameters:
      clientId - the clientId value to set.
      Returns:
      the SsoProperties object itself.
    • clientSecret

      public String clientSecret()
      Get the clientSecret property: The secret known only to the application and the authorization server.
      Returns:
      the clientSecret value.
    • withClientSecret

      public SsoProperties withClientSecret(String clientSecret)
      Set the clientSecret property: The secret known only to the application and the authorization server.
      Parameters:
      clientSecret - the clientSecret value to set.
      Returns:
      the SsoProperties object itself.
    • issuerUri

      public String issuerUri()
      Get the issuerUri property: The URI of Issuer Identifier.
      Returns:
      the issuerUri value.
    • withIssuerUri

      public SsoProperties withIssuerUri(String issuerUri)
      Set the issuerUri property: The URI of Issuer Identifier.
      Parameters:
      issuerUri - the issuerUri value to set.
      Returns:
      the SsoProperties 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<SsoProperties>
      Throws:
      IOException
    • fromJson

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