Class IdentityProviderCreateContract
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.apimanagement.models.IdentityProviderCreateContract
- All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>
public final class IdentityProviderCreateContract
extends com.azure.core.management.ProxyResource
Identity Provider details.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of IdentityProviderCreateContract class. -
Method Summary
Modifier and TypeMethodDescriptionGet the allowedTenants property: List of Allowed Tenants when configuring Azure Active Directory login.Get the authority property: OpenID Connect discovery endpoint hostname for AAD or AAD B2C.clientId()Get the clientId property: Client Id of the Application in the external Identity Provider.Get the clientLibrary property: The client library to be used in the developer portal.Get the clientSecret property: Client secret of the Application in external Identity Provider, used to authenticate login request.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of IdentityProviderCreateContract from the JsonReader.id()Get the id property: Fully qualified resource Id for the resource.name()Get the name property: The name of the resource.Get the passwordResetPolicyName property: Password Reset Policy Name.Get the profileEditingPolicyName property: Profile Editing Policy Name.Get the signinPolicyName property: Signin Policy Name.Get the signinTenant property: The TenantId to use instead of Common when logging into Active Directory.Get the signupPolicyName property: Signup Policy Name.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: The type of the resource.Get the type property: Identity Provider Type identifier.voidvalidate()Validates the instance.withAllowedTenants(List<String> allowedTenants) Set the allowedTenants property: List of Allowed Tenants when configuring Azure Active Directory login.withAuthority(String authority) Set the authority property: OpenID Connect discovery endpoint hostname for AAD or AAD B2C.withClientId(String clientId) Set the clientId property: Client Id of the Application in the external Identity Provider.withClientLibrary(String clientLibrary) Set the clientLibrary property: The client library to be used in the developer portal.withClientSecret(String clientSecret) Set the clientSecret property: Client secret of the Application in external Identity Provider, used to authenticate login request.withPasswordResetPolicyName(String passwordResetPolicyName) Set the passwordResetPolicyName property: Password Reset Policy Name.withProfileEditingPolicyName(String profileEditingPolicyName) Set the profileEditingPolicyName property: Profile Editing Policy Name.withSigninPolicyName(String signinPolicyName) Set the signinPolicyName property: Signin Policy Name.withSigninTenant(String signinTenant) Set the signinTenant property: The TenantId to use instead of Common when logging into Active Directory.withSignupPolicyName(String signupPolicyName) Set the signupPolicyName property: Signup Policy Name.Set the type property: Identity Provider Type 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
-
IdentityProviderCreateContract
public IdentityProviderCreateContract()Creates an instance of IdentityProviderCreateContract class.
-
-
Method Details
-
type
Get the type property: The type of the resource.- Overrides:
typein classcom.azure.core.management.ProxyResource- Returns:
- the type value.
-
name
Get the name property: The name of the resource.- Overrides:
namein classcom.azure.core.management.ProxyResource- Returns:
- the name value.
-
id
Get the id property: Fully qualified resource Id for the resource.- Overrides:
idin classcom.azure.core.management.ProxyResource- Returns:
- the id value.
-
clientId
Get the clientId property: Client Id of the Application in the external Identity Provider. It is App ID for Facebook login, Client ID for Google login, App ID for Microsoft.- Returns:
- the clientId value.
-
withClientId
Set the clientId property: Client Id of the Application in the external Identity Provider. It is App ID for Facebook login, Client ID for Google login, App ID for Microsoft.- Parameters:
clientId- the clientId value to set.- Returns:
- the IdentityProviderCreateContract object itself.
-
clientSecret
Get the clientSecret property: Client secret of the Application in external Identity Provider, used to authenticate login request. For example, it is App Secret for Facebook login, API Key for Google login, Public Key for Microsoft. This property will not be filled on 'GET' operations! Use '/listSecrets' POST request to get the value.- Returns:
- the clientSecret value.
-
withClientSecret
Set the clientSecret property: Client secret of the Application in external Identity Provider, used to authenticate login request. For example, it is App Secret for Facebook login, API Key for Google login, Public Key for Microsoft. This property will not be filled on 'GET' operations! Use '/listSecrets' POST request to get the value.- Parameters:
clientSecret- the clientSecret value to set.- Returns:
- the IdentityProviderCreateContract object itself.
-
typePropertiesType
Get the type property: Identity Provider Type identifier.- Returns:
- the type value.
-
withTypePropertiesType
Set the type property: Identity Provider Type identifier.- Parameters:
type- the type value to set.- Returns:
- the IdentityProviderCreateContract object itself.
-
signinTenant
Get the signinTenant property: The TenantId to use instead of Common when logging into Active Directory.- Returns:
- the signinTenant value.
-
withSigninTenant
Set the signinTenant property: The TenantId to use instead of Common when logging into Active Directory.- Parameters:
signinTenant- the signinTenant value to set.- Returns:
- the IdentityProviderCreateContract object itself.
-
allowedTenants
Get the allowedTenants property: List of Allowed Tenants when configuring Azure Active Directory login.- Returns:
- the allowedTenants value.
-
withAllowedTenants
Set the allowedTenants property: List of Allowed Tenants when configuring Azure Active Directory login.- Parameters:
allowedTenants- the allowedTenants value to set.- Returns:
- the IdentityProviderCreateContract object itself.
-
authority
Get the authority property: OpenID Connect discovery endpoint hostname for AAD or AAD B2C.- Returns:
- the authority value.
-
withAuthority
Set the authority property: OpenID Connect discovery endpoint hostname for AAD or AAD B2C.- Parameters:
authority- the authority value to set.- Returns:
- the IdentityProviderCreateContract object itself.
-
signupPolicyName
Get the signupPolicyName property: Signup Policy Name. Only applies to AAD B2C Identity Provider.- Returns:
- the signupPolicyName value.
-
withSignupPolicyName
Set the signupPolicyName property: Signup Policy Name. Only applies to AAD B2C Identity Provider.- Parameters:
signupPolicyName- the signupPolicyName value to set.- Returns:
- the IdentityProviderCreateContract object itself.
-
signinPolicyName
Get the signinPolicyName property: Signin Policy Name. Only applies to AAD B2C Identity Provider.- Returns:
- the signinPolicyName value.
-
withSigninPolicyName
Set the signinPolicyName property: Signin Policy Name. Only applies to AAD B2C Identity Provider.- Parameters:
signinPolicyName- the signinPolicyName value to set.- Returns:
- the IdentityProviderCreateContract object itself.
-
profileEditingPolicyName
Get the profileEditingPolicyName property: Profile Editing Policy Name. Only applies to AAD B2C Identity Provider.- Returns:
- the profileEditingPolicyName value.
-
withProfileEditingPolicyName
Set the profileEditingPolicyName property: Profile Editing Policy Name. Only applies to AAD B2C Identity Provider.- Parameters:
profileEditingPolicyName- the profileEditingPolicyName value to set.- Returns:
- the IdentityProviderCreateContract object itself.
-
passwordResetPolicyName
Get the passwordResetPolicyName property: Password Reset Policy Name. Only applies to AAD B2C Identity Provider.- Returns:
- the passwordResetPolicyName value.
-
withPasswordResetPolicyName
Set the passwordResetPolicyName property: Password Reset Policy Name. Only applies to AAD B2C Identity Provider.- Parameters:
passwordResetPolicyName- the passwordResetPolicyName value to set.- Returns:
- the IdentityProviderCreateContract object itself.
-
clientLibrary
Get the clientLibrary property: The client library to be used in the developer portal. Only applies to AAD and AAD B2C Identity Provider.- Returns:
- the clientLibrary value.
-
withClientLibrary
Set the clientLibrary property: The client library to be used in the developer portal. Only applies to AAD and AAD B2C Identity Provider.- Parameters:
clientLibrary- the clientLibrary value to set.- Returns:
- the IdentityProviderCreateContract 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<com.azure.core.management.ProxyResource>- Overrides:
toJsonin classcom.azure.core.management.ProxyResource- Throws:
IOException
-
fromJson
public static IdentityProviderCreateContract fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of IdentityProviderCreateContract from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of IdentityProviderCreateContract if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the IdentityProviderCreateContract.
-