Class AuthorizationServerSecretsContractInner
- java.lang.Object
-
- com.azure.resourcemanager.apimanagement.fluent.models.AuthorizationServerSecretsContractInner
-
public final class AuthorizationServerSecretsContractInner extends Object
OAuth Server Secrets Contract.
-
-
Constructor Summary
Constructors Constructor Description AuthorizationServerSecretsContractInner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
clientSecret()
Get the clientSecret property: oAuth Authorization Server Secrets.String
resourceOwnerPassword()
Get the resourceOwnerPassword property: Can be optionally specified when resource owner password grant type is supported by this authorization server.String
resourceOwnerUsername()
Get the resourceOwnerUsername property: Can be optionally specified when resource owner password grant type is supported by this authorization server.void
validate()
Validates the instance.AuthorizationServerSecretsContractInner
withClientSecret(String clientSecret)
Set the clientSecret property: oAuth Authorization Server Secrets.AuthorizationServerSecretsContractInner
withResourceOwnerPassword(String resourceOwnerPassword)
Set the resourceOwnerPassword property: Can be optionally specified when resource owner password grant type is supported by this authorization server.AuthorizationServerSecretsContractInner
withResourceOwnerUsername(String resourceOwnerUsername)
Set the resourceOwnerUsername property: Can be optionally specified when resource owner password grant type is supported by this authorization server.
-
-
-
Method Detail
-
clientSecret
public String clientSecret()
Get the clientSecret property: oAuth Authorization Server Secrets.- Returns:
- the clientSecret value.
-
withClientSecret
public AuthorizationServerSecretsContractInner withClientSecret(String clientSecret)
Set the clientSecret property: oAuth Authorization Server Secrets.- Parameters:
clientSecret
- the clientSecret value to set.- Returns:
- the AuthorizationServerSecretsContractInner object itself.
-
resourceOwnerUsername
public String 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
public String 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.
-
-