AuthorizationServerContractBaseProperties Class
- java.
lang. Object - com.
microsoft. azure. management. apimanagement. v2019_01_01.AuthorizationServerContractBaseProperties
- com.
public class AuthorizationServerContractBaseProperties
External OAuth authorization server Update settings contract.
Constructor Summary
| Constructor | Description | |
|---|---|---|
| AuthorizationServerContractBaseProperties() | ||
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
java.util.List<Authorization |
authorizationMethods()
Get hTTP verbs supported by the authorization endpoint. |
|
java.util.List<Bearer |
bearerTokenSendingMethods()
Get specifies the mechanism by which access token is passed to the API. |
|
java.util.List<Client |
clientAuthenticationMethod()
Get method of authentication supported by the token endpoint of this authorization server. |
| java.lang.String |
clientSecret()
Get client or app secret registered with this authorization server. |
| java.lang.String |
defaultScope()
Get access token scope that is going to be requested by default. |
| java.lang.String |
description()
Get description of the authorization server. |
| java.lang.String |
resourceOwnerPassword()
Get can be optionally specified when resource owner password grant type is supported by this authorization server. |
| java.lang.String |
resourceOwnerUsername()
Get can be optionally specified when resource owner password grant type is supported by this authorization server. |
| java.lang.Boolean |
supportState()
Get if true, authorization server will include state parameter from the authorization request to its response. |
|
java.util.List<Token |
tokenBodyParameters()
Get 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. |
| java.lang.String |
tokenEndpoint()
Get o |
|
Authorization |
withAuthorizationMethods(List<AuthorizationMethod> authorizationMethods)
Set hTTP verbs supported by the authorization endpoint. |
|
Authorization |
withBearerTokenSendingMethods(List<BearerTokenSendingMethod> bearerTokenSendingMethods)
Set specifies the mechanism by which access token is passed to the API. |
|
Authorization |
withClientAuthenticationMethod(List<ClientAuthenticationMethod> clientAuthenticationMethod)
Set method of authentication supported by the token endpoint of this authorization server. |
|
Authorization |
withClientSecret(String clientSecret)
Set client or app secret registered with this authorization server. |
|
Authorization |
withDefaultScope(String defaultScope)
Set access token scope that is going to be requested by default. |
|
Authorization |
withDescription(String description)
Set description of the authorization server. |
|
Authorization |
withResourceOwnerPassword(String resourceOwnerPassword)
Set can be optionally specified when resource owner password grant type is supported by this authorization server. |
|
Authorization |
withResourceOwnerUsername(String resourceOwnerUsername)
Set can be optionally specified when resource owner password grant type is supported by this authorization server. |
|
Authorization |
withSupportState(Boolean supportState)
Set if true, authorization server will include state parameter from the authorization request to its response. |
|
Authorization |
withTokenBodyParameters(List<TokenBodyParameterContract> tokenBodyParameters)
Set 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. |
|
Authorization |
withTokenEndpoint(String tokenEndpoint)
Set o |
Methods inherited from java.lang.Object
Constructor Details
AuthorizationServerContractBaseProperties
public AuthorizationServerContractBaseProperties()
Method Details
authorizationMethods
public List<AuthorizationMethod> authorizationMethods()
Get hTTP verbs supported by the authorization endpoint. GET must be always present. POST is optional.
Returns:
bearerTokenSendingMethods
public List<BearerTokenSendingMethod> bearerTokenSendingMethods()
Get specifies the mechanism by which access token is passed to the API.
Returns:
clientAuthenticationMethod
public List<ClientAuthenticationMethod> clientAuthenticationMethod()
Get 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.
Returns:
clientSecret
public String clientSecret()
Get client or app secret registered with this authorization server.
Returns:
defaultScope
public String defaultScope()
Get 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.
Returns:
description
public String description()
Get description of the authorization server. Can contain HTML formatting tags.
Returns:
resourceOwnerPassword
public String resourceOwnerPassword()
Get can be optionally specified when resource owner password grant type is supported by this authorization server. Default resource owner password.
Returns:
resourceOwnerUsername
public String resourceOwnerUsername()
Get can be optionally specified when resource owner password grant type is supported by this authorization server. Default resource owner username.
Returns:
supportState
public Boolean supportState()
Get if true, authorization server will include state parameter from the authorization request to its response. Client may use state parameter to raise protocol security.
Returns:
tokenBodyParameters
public List<TokenBodyParameterContract> tokenBodyParameters()
Get 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"}.
Returns:
tokenEndpoint
public String tokenEndpoint()
Get oAuth token endpoint. Contains absolute URI to entity being referenced.
Returns:
withAuthorizationMethods
public AuthorizationServerContractBaseProperties withAuthorizationMethods(List<AuthorizationMethod> authorizationMethods)
Set hTTP verbs supported by the authorization endpoint. GET must be always present. POST is optional.
Parameters:
Returns:
withBearerTokenSendingMethods
public AuthorizationServerContractBaseProperties withBearerTokenSendingMethods(List<BearerTokenSendingMethod> bearerTokenSendingMethods)
Set specifies the mechanism by which access token is passed to the API.
Parameters:
Returns:
withClientAuthenticationMethod
public AuthorizationServerContractBaseProperties withClientAuthenticationMethod(List<ClientAuthenticationMethod> clientAuthenticationMethod)
Set 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.
Parameters:
Returns:
withClientSecret
public AuthorizationServerContractBaseProperties withClientSecret(String clientSecret)
Set client or app secret registered with this authorization server.
Parameters:
Returns:
withDefaultScope
public AuthorizationServerContractBaseProperties withDefaultScope(String defaultScope)
Set 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.
Parameters:
Returns:
withDescription
public AuthorizationServerContractBaseProperties withDescription(String description)
Set description of the authorization server. Can contain HTML formatting tags.
Parameters:
Returns:
withResourceOwnerPassword
public AuthorizationServerContractBaseProperties withResourceOwnerPassword(String resourceOwnerPassword)
Set can be optionally specified when resource owner password grant type is supported by this authorization server. Default resource owner password.
Parameters:
Returns:
withResourceOwnerUsername
public AuthorizationServerContractBaseProperties withResourceOwnerUsername(String resourceOwnerUsername)
Set can be optionally specified when resource owner password grant type is supported by this authorization server. Default resource owner username.
Parameters:
Returns:
withSupportState
public AuthorizationServerContractBaseProperties withSupportState(Boolean supportState)
Set if true, authorization server will include state parameter from the authorization request to its response. Client may use state parameter to raise protocol security.
Parameters:
Returns:
withTokenBodyParameters
public AuthorizationServerContractBaseProperties withTokenBodyParameters(List<TokenBodyParameterContract> tokenBodyParameters)
Set 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"}.
Parameters:
Returns:
withTokenEndpoint
public AuthorizationServerContractBaseProperties withTokenEndpoint(String tokenEndpoint)
Set oAuth token endpoint. Contains absolute URI to entity being referenced.
Parameters:
Returns: