Class OpenIdConnectClientCredential
java.lang.Object
com.azure.resourcemanager.appservice.models.OpenIdConnectClientCredential
- All Implemented Interfaces:
com.azure.json.JsonSerializable<OpenIdConnectClientCredential>
public final class OpenIdConnectClientCredential
extends Object
implements com.azure.json.JsonSerializable<OpenIdConnectClientCredential>
The authentication client credentials of the custom Open ID Connect provider.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of OpenIdConnectClientCredential class. -
Method Summary
Modifier and TypeMethodDescriptionGet the clientSecretSettingName property: The app setting that contains the client secret for the custom Open ID Connect provider.fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of OpenIdConnectClientCredential from the JsonReader.method()
Get the method property: The method that should be used to authenticate the user.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withClientSecretSettingName
(String clientSecretSettingName) Set the clientSecretSettingName property: The app setting that contains the client secret for the custom Open ID Connect provider.withMethod
(ClientCredentialMethod method) Set the method property: The method that should be used to authenticate the user.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
-
OpenIdConnectClientCredential
public OpenIdConnectClientCredential()Creates an instance of OpenIdConnectClientCredential class.
-
-
Method Details
-
method
Get the method property: The method that should be used to authenticate the user.- Returns:
- the method value.
-
withMethod
Set the method property: The method that should be used to authenticate the user.- Parameters:
method
- the method value to set.- Returns:
- the OpenIdConnectClientCredential object itself.
-
clientSecretSettingName
Get the clientSecretSettingName property: The app setting that contains the client secret for the custom Open ID Connect provider.- Returns:
- the clientSecretSettingName value.
-
withClientSecretSettingName
Set the clientSecretSettingName property: The app setting that contains the client secret for the custom Open ID Connect provider.- Parameters:
clientSecretSettingName
- the clientSecretSettingName value to set.- Returns:
- the OpenIdConnectClientCredential object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<OpenIdConnectClientCredential>
- Throws:
IOException
-
fromJson
public static OpenIdConnectClientCredential fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of OpenIdConnectClientCredential from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of OpenIdConnectClientCredential 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 OpenIdConnectClientCredential.
-