Class AuthorizationServerSecretsContractInner
java.lang.Object
com.azure.resourcemanager.apimanagement.fluent.models.AuthorizationServerSecretsContractInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<AuthorizationServerSecretsContractInner>
public final class AuthorizationServerSecretsContractInner
extends Object
implements com.azure.json.JsonSerializable<AuthorizationServerSecretsContractInner>
OAuth Server Secrets Contract.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of AuthorizationServerSecretsContractInner class. -
Method Summary
Modifier and TypeMethodDescriptionGet the clientSecret property: oAuth Authorization Server Secrets.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of AuthorizationServerSecretsContractInner from the JsonReader.Get the resourceOwnerPassword property: Can be optionally specified when resource owner password grant type is supported by this authorization server.Get the resourceOwnerUsername property: Can be optionally specified when resource owner password grant type is supported by this authorization server.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withClientSecret(String clientSecret) Set the clientSecret property: oAuth Authorization Server Secrets.withResourceOwnerPassword(String resourceOwnerPassword) Set the resourceOwnerPassword property: Can be optionally specified when resource owner password grant type is supported by this authorization server.withResourceOwnerUsername(String resourceOwnerUsername) Set the resourceOwnerUsername property: Can be optionally specified when resource owner password grant type is supported by this authorization server.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
-
AuthorizationServerSecretsContractInner
public AuthorizationServerSecretsContractInner()Creates an instance of AuthorizationServerSecretsContractInner class.
-
-
Method Details
-
clientSecret
Get the clientSecret property: oAuth Authorization Server Secrets.- Returns:
- the clientSecret value.
-
withClientSecret
Set the clientSecret property: oAuth Authorization Server Secrets.- Parameters:
clientSecret- the clientSecret value to set.- Returns:
- the AuthorizationServerSecretsContractInner object itself.
-
resourceOwnerUsername
Get the resourceOwnerUsername property: Can be optionally specified when resource owner password grant type is supported by this authorization server. Default resource owner username.- Returns:
- the resourceOwnerUsername value.
-
withResourceOwnerUsername
public AuthorizationServerSecretsContractInner withResourceOwnerUsername(String resourceOwnerUsername) Set the resourceOwnerUsername property: Can be optionally specified when resource owner password grant type is supported by this authorization server. Default resource owner username.- Parameters:
resourceOwnerUsername- the resourceOwnerUsername value to set.- Returns:
- the AuthorizationServerSecretsContractInner object itself.
-
resourceOwnerPassword
Get the resourceOwnerPassword property: Can be optionally specified when resource owner password grant type is supported by this authorization server. Default resource owner password.- Returns:
- the resourceOwnerPassword value.
-
withResourceOwnerPassword
public AuthorizationServerSecretsContractInner withResourceOwnerPassword(String resourceOwnerPassword) Set the resourceOwnerPassword property: Can be optionally specified when resource owner password grant type is supported by this authorization server. Default resource owner password.- Parameters:
resourceOwnerPassword- the resourceOwnerPassword value to set.- Returns:
- the AuthorizationServerSecretsContractInner 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<AuthorizationServerSecretsContractInner>- Throws:
IOException
-
fromJson
public static AuthorizationServerSecretsContractInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of AuthorizationServerSecretsContractInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of AuthorizationServerSecretsContractInner 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 AuthorizationServerSecretsContractInner.
-