AuthorizationServerUpdateContractProperties Class
- java.
lang. Object - com.
azure. resourcemanager. apimanagement. models. AuthorizationServerContractBaseProperties - com.
azure. resourcemanager. apimanagement. fluent. models. AuthorizationServerUpdateContractProperties
- com.
- com.
public final class AuthorizationServerUpdateContractProperties
extends AuthorizationServerContractBaseProperties
External OAuth authorization server Update settings contract.
Constructor Summary
| Constructor | Description |
|---|---|
| AuthorizationServerUpdateContractProperties() |
Creates an instance of Authorization |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
authorizationEndpoint()
Get the authorization |
| String |
clientId()
Get the client |
| String |
clientRegistrationEndpoint()
Get the client |
| String |
clientSecret()
Get the client |
| String |
displayName()
Get the display |
|
static
Authorization |
fromJson(JsonReader jsonReader)
Reads an instance of Authorization |
|
List<Grant |
grantTypes()
Get the grant |
|
Json |
toJson(JsonWriter jsonWriter) |
| Boolean |
useInApiDocumentation()
Get the use |
| Boolean |
useInTestConsole()
Get the use |
| void |
validate()
Validates the instance. |
|
Authorization |
withAuthorizationEndpoint(String authorizationEndpoint)
Set the authorization |
|
Authorization |
withAuthorizationMethods(List<AuthorizationMethod> authorizationMethods)
Set the authorization |
|
Authorization |
withBearerTokenSendingMethods(List<BearerTokenSendingMethod> bearerTokenSendingMethods)
Set the bearer |
|
Authorization |
withClientAuthenticationMethod(List<ClientAuthenticationMethod> clientAuthenticationMethod)
Set the client |
|
Authorization |
withClientId(String clientId)
Set the client |
|
Authorization |
withClientRegistrationEndpoint(String clientRegistrationEndpoint)
Set the client |
|
Authorization |
withClientSecret(String clientSecret)
Set the client |
|
Authorization |
withDefaultScope(String defaultScope)
Set the default |
|
Authorization |
withDescription(String description)
Set the description property: Description of the authorization server. |
|
Authorization |
withDisplayName(String displayName)
Set the display |
|
Authorization |
withGrantTypes(List<GrantType> grantTypes)
Set the grant |
|
Authorization |
withResourceOwnerPassword(String resourceOwnerPassword)
Set the resource |
|
Authorization |
withResourceOwnerUsername(String resourceOwnerUsername)
Set the resource |
|
Authorization |
withSupportState(Boolean supportState)
Set the support |
|
Authorization |
withTokenBodyParameters(List<TokenBodyParameterContract> tokenBodyParameters)
Set the token |
|
Authorization |
withTokenEndpoint(String tokenEndpoint)
Set the token |
|
Authorization |
withUseInApiDocumentation(Boolean useInApiDocumentation)
Set the use |
|
Authorization |
withUseInTestConsole(Boolean useInTestConsole)
Set the use |
Methods inherited from AuthorizationServerContractBaseProperties
Methods inherited from java.lang.Object
Constructor Details
AuthorizationServerUpdateContractProperties
public AuthorizationServerUpdateContractProperties()
Creates an instance of AuthorizationServerUpdateContractProperties class.
Method Details
authorizationEndpoint
public String authorizationEndpoint()
Get the authorizationEndpoint property: OAuth authorization endpoint. See http://tools.ietf.org/html/rfc6749\#section-3.2.
Returns:
clientId
public String clientId()
Get the clientId property: Client or app id registered with this authorization server.
Returns:
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:
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:
displayName
public String displayName()
Get the displayName property: User-friendly authorization server name.
Returns:
fromJson
public static AuthorizationServerUpdateContractProperties fromJson(JsonReader jsonReader)
Reads an instance of AuthorizationServerUpdateContractProperties from the JsonReader.
Parameters:
Returns:
Throws:
grantTypes
public List<GrantType> grantTypes()
Get the grantTypes property: Form of an authorization grant, which the client uses to request the access token.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
AuthorizationServerUpdateContractProperties.toJson(JsonWriter jsonWriter)Parameters:
Throws:
useInApiDocumentation
public Boolean useInApiDocumentation()
Get the useInApiDocumentation property: If true, the authorization server will be used in the API documentation in the developer portal. False by default if no value is provided.
Returns:
useInTestConsole
public Boolean useInTestConsole()
Get the useInTestConsole property: If true, the authorization server may be used in the developer portal test console. True by default if no value is provided.
Returns:
validate
public void validate()
Validates the instance.
Overrides:
AuthorizationServerUpdateContractProperties.validate()withAuthorizationEndpoint
public AuthorizationServerUpdateContractProperties withAuthorizationEndpoint(String authorizationEndpoint)
Set the authorizationEndpoint property: OAuth authorization endpoint. See http://tools.ietf.org/html/rfc6749\#section-3.2.
Parameters:
Returns:
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:
AuthorizationServerUpdateContractProperties.withAuthorizationMethods(List<AuthorizationMethod> authorizationMethods)Parameters:
withBearerTokenSendingMethods
public AuthorizationServerUpdateContractProperties withBearerTokenSendingMethods(List<BearerTokenSendingMethod> bearerTokenSendingMethods)
Set the bearerTokenSendingMethods property: Specifies the mechanism by which access token is passed to the API.
Overrides:
AuthorizationServerUpdateContractProperties.withBearerTokenSendingMethods(List<BearerTokenSendingMethod> bearerTokenSendingMethods)Parameters:
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:
AuthorizationServerUpdateContractProperties.withClientAuthenticationMethod(List<ClientAuthenticationMethod> clientAuthenticationMethod)Parameters:
withClientId
public AuthorizationServerUpdateContractProperties withClientId(String clientId)
Set the clientId property: Client or app id registered with this authorization server.
Parameters:
Returns:
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:
Returns:
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:
Returns:
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:
AuthorizationServerUpdateContractProperties.withDefaultScope(String defaultScope)Parameters:
withDescription
public AuthorizationServerUpdateContractProperties withDescription(String description)
Set the description property: Description of the authorization server. Can contain HTML formatting tags.
Overrides:
AuthorizationServerUpdateContractProperties.withDescription(String description)Parameters:
withDisplayName
public AuthorizationServerUpdateContractProperties withDisplayName(String displayName)
Set the displayName property: User-friendly authorization server name.
Parameters:
Returns:
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:
Returns:
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:
AuthorizationServerUpdateContractProperties.withResourceOwnerPassword(String resourceOwnerPassword)Parameters:
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:
AuthorizationServerUpdateContractProperties.withResourceOwnerUsername(String resourceOwnerUsername)Parameters:
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:
AuthorizationServerUpdateContractProperties.withSupportState(Boolean supportState)Parameters:
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:
AuthorizationServerUpdateContractProperties.withTokenBodyParameters(List<TokenBodyParameterContract> tokenBodyParameters)Parameters:
withTokenEndpoint
public AuthorizationServerUpdateContractProperties withTokenEndpoint(String tokenEndpoint)
Set the tokenEndpoint property: OAuth token endpoint. Contains absolute URI to entity being referenced.
Overrides:
AuthorizationServerUpdateContractProperties.withTokenEndpoint(String tokenEndpoint)Parameters:
withUseInApiDocumentation
public AuthorizationServerUpdateContractProperties withUseInApiDocumentation(Boolean useInApiDocumentation)
Set the useInApiDocumentation property: If true, the authorization server will be used in the API documentation in the developer portal. False by default if no value is provided.
Parameters:
Returns:
withUseInTestConsole
public AuthorizationServerUpdateContractProperties withUseInTestConsole(Boolean useInTestConsole)
Set the useInTestConsole property: If true, the authorization server may be used in the developer portal test console. True by default if no value is provided.
Parameters:
Returns: