Поделиться через


OpenIdConnectClientCredential Class

  • java.lang.Object
    • com.azure.resourcemanager.appservice.models.OpenIdConnectClientCredential

Implements

public final class OpenIdConnectClientCredential
implements JsonSerializable<OpenIdConnectClientCredential>

The authentication client credentials of the custom Open ID Connect provider.

Constructor Summary

Constructor Description
OpenIdConnectClientCredential()

Creates an instance of OpenIdConnectClientCredential class.

Method Summary

Modifier and Type Method and Description
String clientSecretSettingName()

Get the clientSecretSettingName property: The app setting that contains the client secret for the custom Open ID Connect provider.

static OpenIdConnectClientCredential fromJson(JsonReader jsonReader)

Reads an instance of OpenIdConnectClientCredential from the JsonReader.

ClientCredentialMethod method()

Get the method property: The method that should be used to authenticate the user.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

OpenIdConnectClientCredential withClientSecretSettingName(String clientSecretSettingName)

Set the clientSecretSettingName property: The app setting that contains the client secret for the custom Open ID Connect provider.

OpenIdConnectClientCredential withMethod(ClientCredentialMethod method)

Set the method property: The method that should be used to authenticate the user.

Methods inherited from java.lang.Object

Constructor Details

OpenIdConnectClientCredential

public OpenIdConnectClientCredential()

Creates an instance of OpenIdConnectClientCredential class.

Method Details

clientSecretSettingName

public String clientSecretSettingName()

Get the clientSecretSettingName property: The app setting that contains the client secret for the custom Open ID Connect provider.

Returns:

the clientSecretSettingName value.

fromJson

public static OpenIdConnectClientCredential fromJson(JsonReader jsonReader)

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.

method

public ClientCredentialMethod method()

Get the method property: The method that should be used to authenticate the user.

Returns:

the method value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withClientSecretSettingName

public OpenIdConnectClientCredential withClientSecretSettingName(String clientSecretSettingName)

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.

withMethod

public OpenIdConnectClientCredential withMethod(ClientCredentialMethod method)

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.

Applies to