Class OpenIdAuthenticationSettingsContract
java.lang.Object
com.azure.resourcemanager.apimanagement.models.OpenIdAuthenticationSettingsContract
- All Implemented Interfaces:
com.azure.json.JsonSerializable<OpenIdAuthenticationSettingsContract>
public final class OpenIdAuthenticationSettingsContract
extends Object
implements com.azure.json.JsonSerializable<OpenIdAuthenticationSettingsContract>
API OAuth2 Authentication settings details.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of OpenIdAuthenticationSettingsContract class. -
Method Summary
Modifier and TypeMethodDescriptionGet the bearerTokenSendingMethods property: How to send token to the server.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of OpenIdAuthenticationSettingsContract from the JsonReader.Get the openidProviderId property: OAuth authorization server identifier.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withBearerTokenSendingMethods(List<BearerTokenSendingMethods> bearerTokenSendingMethods) Set the bearerTokenSendingMethods property: How to send token to the server.withOpenidProviderId(String openidProviderId) Set the openidProviderId property: OAuth authorization server identifier.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
-
OpenIdAuthenticationSettingsContract
public OpenIdAuthenticationSettingsContract()Creates an instance of OpenIdAuthenticationSettingsContract class.
-
-
Method Details
-
openidProviderId
Get the openidProviderId property: OAuth authorization server identifier.- Returns:
- the openidProviderId value.
-
withOpenidProviderId
Set the openidProviderId property: OAuth authorization server identifier.- Parameters:
openidProviderId- the openidProviderId value to set.- Returns:
- the OpenIdAuthenticationSettingsContract object itself.
-
bearerTokenSendingMethods
Get the bearerTokenSendingMethods property: How to send token to the server.- Returns:
- the bearerTokenSendingMethods value.
-
withBearerTokenSendingMethods
public OpenIdAuthenticationSettingsContract withBearerTokenSendingMethods(List<BearerTokenSendingMethods> bearerTokenSendingMethods) Set the bearerTokenSendingMethods property: How to send token to the server.- Parameters:
bearerTokenSendingMethods- the bearerTokenSendingMethods value to set.- Returns:
- the OpenIdAuthenticationSettingsContract 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<OpenIdAuthenticationSettingsContract>- Throws:
IOException
-
fromJson
public static OpenIdAuthenticationSettingsContract fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of OpenIdAuthenticationSettingsContract from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of OpenIdAuthenticationSettingsContract 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 OpenIdAuthenticationSettingsContract.
-