Class AuthorizationServerUpdateContractProperties
- java.lang.Object
-
- com.azure.resourcemanager.apimanagement.models.AuthorizationServerContractBaseProperties
-
- com.azure.resourcemanager.apimanagement.fluent.models.AuthorizationServerUpdateContractProperties
-
public final class AuthorizationServerUpdateContractProperties extends AuthorizationServerContractBaseProperties
External OAuth authorization server Update settings contract.
-
-
Constructor Summary
Constructors Constructor Description AuthorizationServerUpdateContractProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
authorizationEndpoint()
Get the authorizationEndpoint property: OAuth authorization endpoint.String
clientId()
Get the clientId property: Client or app id registered with this authorization server.String
clientRegistrationEndpoint()
Get the clientRegistrationEndpoint property: Optional reference to a page where client or app registration for this authorization server is performed.String
clientSecret()
Get the clientSecret property: Client or app secret registered with this authorization server.String
displayName()
Get the displayName property: User-friendly authorization server name.List<GrantType>
grantTypes()
Get the grantTypes property: Form of an authorization grant, which the client uses to request the access token.void
validate()
Validates the instance.AuthorizationServerUpdateContractProperties
withAuthorizationEndpoint(String authorizationEndpoint)
Set the authorizationEndpoint property: OAuth authorization endpoint.AuthorizationServerUpdateContractProperties
withAuthorizationMethods(List<AuthorizationMethod> authorizationMethods)
Set the authorizationMethods property: HTTP verbs supported by the authorization endpoint.AuthorizationServerUpdateContractProperties
withBearerTokenSendingMethods(List<BearerTokenSendingMethod> bearerTokenSendingMethods)
Set the bearerTokenSendingMethods property: Specifies the mechanism by which access token is passed to the API.AuthorizationServerUpdateContractProperties
withClientAuthenticationMethod(List<ClientAuthenticationMethod> clientAuthenticationMethod)
Set the clientAuthenticationMethod property: Method of authentication supported by the token endpoint of this authorization server.AuthorizationServerUpdateContractProperties
withClientId(String clientId)
Set the clientId property: Client or app id registered with this authorization server.AuthorizationServerUpdateContractProperties
withClientRegistrationEndpoint(String clientRegistrationEndpoint)
Set the clientRegistrationEndpoint property: Optional reference to a page where client or app registration for this authorization server is performed.AuthorizationServerUpdateContractProperties
withClientSecret(String clientSecret)
Set the clientSecret property: Client or app secret registered with this authorization server.AuthorizationServerUpdateContractProperties
withDefaultScope(String defaultScope)
Set the defaultScope property: Access token scope that is going to be requested by default.AuthorizationServerUpdateContractProperties
withDescription(String description)
Set the description property: Description of the authorization server.AuthorizationServerUpdateContractProperties
withDisplayName(String displayName)
Set the displayName property: User-friendly authorization server name.AuthorizationServerUpdateContractProperties
withGrantTypes(List<GrantType> grantTypes)
Set the grantTypes property: Form of an authorization grant, which the client uses to request the access token.AuthorizationServerUpdateContractProperties
withResourceOwnerPassword(String resourceOwnerPassword)
Set the resourceOwnerPassword property: Can be optionally specified when resource owner password grant type is supported by this authorization server.AuthorizationServerUpdateContractProperties
withResourceOwnerUsername(String resourceOwnerUsername)
Set the resourceOwnerUsername property: Can be optionally specified when resource owner password grant type is supported by this authorization server.AuthorizationServerUpdateContractProperties
withSupportState(Boolean supportState)
Set the supportState property: If true, authorization server will include state parameter from the authorization request to its response.AuthorizationServerUpdateContractProperties
withTokenBodyParameters(List<TokenBodyParameterContract> tokenBodyParameters)
Set the tokenBodyParameters property: Additional parameters required by the token endpoint of this authorization server represented as an array of JSON objects with name and value string properties, i.e.AuthorizationServerUpdateContractProperties
withTokenEndpoint(String tokenEndpoint)
Set the tokenEndpoint property: OAuth token endpoint.-
Methods inherited from class com.azure.resourcemanager.apimanagement.models.AuthorizationServerContractBaseProperties
authorizationMethods, bearerTokenSendingMethods, clientAuthenticationMethod, defaultScope, description, resourceOwnerPassword, resourceOwnerUsername, supportState, tokenBodyParameters, tokenEndpoint
-
-
-
-
Method Detail
-
displayName
public String displayName()
Get the displayName property: User-friendly authorization server name.- Returns:
- the displayName value.
-
withDisplayName
public AuthorizationServerUpdateContractProperties withDisplayName(String displayName)
Set the displayName property: User-friendly authorization server name.- Parameters:
displayName
- the displayName value to set.- Returns:
- the AuthorizationServerUpdateContractProperties object itself.
-
clientRegistrationEndpoint
public String clientRegistrationEndpoint()
Get the clientRegistrationEndpoint property: Optional reference to a page where client or app registration for this authorization server is performed. Contains absolute URL to entity being referenced.- Returns:
- the clientRegistrationEndpoint value.
-
withClientRegistrationEndpoint
public AuthorizationServerUpdateContractProperties withClientRegistrationEndpoint(String clientRegistrationEndpoint)
Set the clientRegistrationEndpoint property: Optional reference to a page where client or app registration for this authorization server is performed. Contains absolute URL to entity being referenced.- Parameters:
clientRegistrationEndpoint
- the clientRegistrationEndpoint value to set.- Returns:
- the AuthorizationServerUpdateContractProperties object itself.
-
authorizationEndpoint
public String authorizationEndpoint()
Get the authorizationEndpoint property: OAuth authorization endpoint. See http://tools.ietf.org/html/rfc6749#section-3.2.- Returns:
- the authorizationEndpoint value.
-
withAuthorizationEndpoint
public AuthorizationServerUpdateContractProperties withAuthorizationEndpoint(String authorizationEndpoint)
Set the authorizationEndpoint property: OAuth authorization endpoint. See http://tools.ietf.org/html/rfc6749#section-3.2.- Parameters:
authorizationEndpoint
- the authorizationEndpoint value to set.- Returns:
- the AuthorizationServerUpdateContractProperties object itself.
-
grantTypes
public List<GrantType> grantTypes()
Get the grantTypes property: Form of an authorization grant, which the client uses to request the access token.- Returns:
- the grantTypes value.
-
withGrantTypes
public AuthorizationServerUpdateContractProperties withGrantTypes(List<GrantType> grantTypes)
Set the grantTypes property: Form of an authorization grant, which the client uses to request the access token.- Parameters:
grantTypes
- the grantTypes value to set.- Returns:
- the AuthorizationServerUpdateContractProperties object itself.
-
clientId
public String clientId()
Get the clientId property: Client or app id registered with this authorization server.- Returns:
- the clientId value.
-
withClientId
public AuthorizationServerUpdateContractProperties withClientId(String clientId)
Set the clientId property: Client or app id registered with this authorization server.- Parameters:
clientId
- the clientId value to set.- Returns:
- the AuthorizationServerUpdateContractProperties object itself.
-
clientSecret
public String clientSecret()
Get the clientSecret property: Client or app secret registered with this authorization server. This property will not be filled on 'GET' operations! Use '/listSecrets' POST request to get the value.- Returns:
- the clientSecret value.
-
withClientSecret
public AuthorizationServerUpdateContractProperties withClientSecret(String clientSecret)
Set the clientSecret property: Client or app secret registered with this authorization server. 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 AuthorizationServerUpdateContractProperties object itself.
-
withDescription
public AuthorizationServerUpdateContractProperties withDescription(String description)
Set the description property: Description of the authorization server. Can contain HTML formatting tags.- Overrides:
withDescription
in classAuthorizationServerContractBaseProperties
- Parameters:
description
- the description value to set.- Returns:
- the AuthorizationServerContractBaseProperties object itself.
-
withAuthorizationMethods
public AuthorizationServerUpdateContractProperties withAuthorizationMethods(List<AuthorizationMethod> authorizationMethods)
Set the authorizationMethods property: HTTP verbs supported by the authorization endpoint. GET must be always present. POST is optional.- Overrides:
withAuthorizationMethods
in classAuthorizationServerContractBaseProperties
- Parameters:
authorizationMethods
- the authorizationMethods value to set.- Returns:
- the AuthorizationServerContractBaseProperties object itself.
-
withClientAuthenticationMethod
public AuthorizationServerUpdateContractProperties withClientAuthenticationMethod(List<ClientAuthenticationMethod> clientAuthenticationMethod)
Set the clientAuthenticationMethod property: Method of authentication supported by the token endpoint of this authorization server. Possible values are Basic and/or Body. When Body is specified, client credentials and other parameters are passed within the request body in the application/x-www-form-urlencoded format.- Overrides:
withClientAuthenticationMethod
in classAuthorizationServerContractBaseProperties
- Parameters:
clientAuthenticationMethod
- the clientAuthenticationMethod value to set.- Returns:
- the AuthorizationServerContractBaseProperties object itself.
-
withTokenBodyParameters
public AuthorizationServerUpdateContractProperties withTokenBodyParameters(List<TokenBodyParameterContract> tokenBodyParameters)
Set the tokenBodyParameters property: Additional parameters required by the token endpoint of this authorization server represented as an array of JSON objects with name and value string properties, i.e. {"name" : "name value", "value": "a value"}.- Overrides:
withTokenBodyParameters
in classAuthorizationServerContractBaseProperties
- Parameters:
tokenBodyParameters
- the tokenBodyParameters value to set.- Returns:
- the AuthorizationServerContractBaseProperties object itself.
-
withTokenEndpoint
public AuthorizationServerUpdateContractProperties withTokenEndpoint(String tokenEndpoint)
Set the tokenEndpoint property: OAuth token endpoint. Contains absolute URI to entity being referenced.- Overrides:
withTokenEndpoint
in classAuthorizationServerContractBaseProperties
- Parameters:
tokenEndpoint
- the tokenEndpoint value to set.- Returns:
- the AuthorizationServerContractBaseProperties object itself.
-
withSupportState
public AuthorizationServerUpdateContractProperties withSupportState(Boolean supportState)
Set the supportState property: If true, authorization server will include state parameter from the authorization request to its response. Client may use state parameter to raise protocol security.- Overrides:
withSupportState
in classAuthorizationServerContractBaseProperties
- Parameters:
supportState
- the supportState value to set.- Returns:
- the AuthorizationServerContractBaseProperties object itself.
-
withDefaultScope
public AuthorizationServerUpdateContractProperties withDefaultScope(String defaultScope)
Set the defaultScope property: Access token scope that is going to be requested by default. Can be overridden at the API level. Should be provided in the form of a string containing space-delimited values.- Overrides:
withDefaultScope
in classAuthorizationServerContractBaseProperties
- Parameters:
defaultScope
- the defaultScope value to set.- Returns:
- the AuthorizationServerContractBaseProperties object itself.
-
withBearerTokenSendingMethods
public AuthorizationServerUpdateContractProperties withBearerTokenSendingMethods(List<BearerTokenSendingMethod> bearerTokenSendingMethods)
Set the bearerTokenSendingMethods property: Specifies the mechanism by which access token is passed to the API.- Overrides:
withBearerTokenSendingMethods
in classAuthorizationServerContractBaseProperties
- Parameters:
bearerTokenSendingMethods
- the bearerTokenSendingMethods value to set.- Returns:
- the AuthorizationServerContractBaseProperties object itself.
-
withResourceOwnerUsername
public AuthorizationServerUpdateContractProperties 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.- Overrides:
withResourceOwnerUsername
in classAuthorizationServerContractBaseProperties
- Parameters:
resourceOwnerUsername
- the resourceOwnerUsername value to set.- Returns:
- the AuthorizationServerContractBaseProperties object itself.
-
withResourceOwnerPassword
public AuthorizationServerUpdateContractProperties 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.- Overrides:
withResourceOwnerPassword
in classAuthorizationServerContractBaseProperties
- Parameters:
resourceOwnerPassword
- the resourceOwnerPassword value to set.- Returns:
- the AuthorizationServerContractBaseProperties object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validate
in classAuthorizationServerContractBaseProperties
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-