Class DevToolPortalSsoProperties
java.lang.Object
com.azure.resourcemanager.appplatform.models.DevToolPortalSsoProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<DevToolPortalSsoProperties>
public final class DevToolPortalSsoProperties
extends Object
implements com.azure.json.JsonSerializable<DevToolPortalSsoProperties>
Single sign-on related configuration.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of DevToolPortalSsoProperties class. -
Method Summary
Modifier and TypeMethodDescriptionclientId()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.static DevToolPortalSsoPropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of DevToolPortalSsoProperties from the JsonReader.Get the metadataUrl property: The URI of a JSON file with generic OIDC provider configuration.scopes()Get the scopes property: It defines the specific actions applications can be allowed to do on a user's behalf.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()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.withMetadataUrl(String metadataUrl) Set the metadataUrl property: The URI of a JSON file with generic OIDC provider configuration.withScopes(List<String> scopes) Set the scopes 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, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
DevToolPortalSsoProperties
public DevToolPortalSsoProperties()Creates an instance of DevToolPortalSsoProperties class.
-
-
Method Details
-
scopes
Get the scopes property: It defines the specific actions applications can be allowed to do on a user's behalf.- Returns:
- the scopes value.
-
withScopes
Set the scopes property: It defines the specific actions applications can be allowed to do on a user's behalf.- Parameters:
scopes- the scopes value to set.- Returns:
- the DevToolPortalSsoProperties object itself.
-
clientId
Get the clientId property: The public identifier for the application.- Returns:
- the clientId value.
-
withClientId
Set the clientId property: The public identifier for the application.- Parameters:
clientId- the clientId value to set.- Returns:
- the DevToolPortalSsoProperties object itself.
-
clientSecret
Get the clientSecret property: The secret known only to the application and the authorization server.- Returns:
- the clientSecret value.
-
withClientSecret
Set the clientSecret property: The secret known only to the application and the authorization server.- Parameters:
clientSecret- the clientSecret value to set.- Returns:
- the DevToolPortalSsoProperties object itself.
-
metadataUrl
Get the metadataUrl property: The URI of a JSON file with generic OIDC provider configuration.- Returns:
- the metadataUrl value.
-
withMetadataUrl
Set the metadataUrl property: The URI of a JSON file with generic OIDC provider configuration.- Parameters:
metadataUrl- the metadataUrl value to set.- Returns:
- the DevToolPortalSsoProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<DevToolPortalSsoProperties>- Throws:
IOException
-
fromJson
public static DevToolPortalSsoProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of DevToolPortalSsoProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of DevToolPortalSsoProperties 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 DevToolPortalSsoProperties.
-