Class OpenIdConnectLogin
java.lang.Object
com.azure.resourcemanager.appservice.models.OpenIdConnectLogin
- All Implemented Interfaces:
com.azure.json.JsonSerializable<OpenIdConnectLogin>
public final class OpenIdConnectLogin
extends Object
implements com.azure.json.JsonSerializable<OpenIdConnectLogin>
The configuration settings of the login flow of the custom Open ID Connect provider.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic OpenIdConnectLogin
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of OpenIdConnectLogin from the JsonReader.Get the nameClaimType property: The name of the claim that contains the users name.scopes()
Get the scopes property: A list of the scopes that should be requested while authenticating.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withNameClaimType
(String nameClaimType) Set the nameClaimType property: The name of the claim that contains the users name.withScopes
(List<String> scopes) Set the scopes property: A list of the scopes that should be requested while authenticating.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
-
OpenIdConnectLogin
public OpenIdConnectLogin()Creates an instance of OpenIdConnectLogin class.
-
-
Method Details
-
nameClaimType
Get the nameClaimType property: The name of the claim that contains the users name.- Returns:
- the nameClaimType value.
-
withNameClaimType
Set the nameClaimType property: The name of the claim that contains the users name.- Parameters:
nameClaimType
- the nameClaimType value to set.- Returns:
- the OpenIdConnectLogin object itself.
-
scopes
Get the scopes property: A list of the scopes that should be requested while authenticating.- Returns:
- the scopes value.
-
withScopes
Set the scopes property: A list of the scopes that should be requested while authenticating.- Parameters:
scopes
- the scopes value to set.- Returns:
- the OpenIdConnectLogin 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<OpenIdConnectLogin>
- Throws:
IOException
-
fromJson
Reads an instance of OpenIdConnectLogin from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of OpenIdConnectLogin 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 OpenIdConnectLogin.
-