public interface OAuthFlows extends Constructible, Extensible<OAuthFlows>
Modifier and Type | Method and Description |
---|---|
default OAuthFlows |
authorizationCode(OAuthFlow authorizationCode)
OAuth Authorization Code flow; previously called accessCode in OpenAPI 2.0
|
default OAuthFlows |
clientCredentials(OAuthFlow clientCredentials)
OAuth Client Credential flow; previously called application in OpenAPI 2.0
|
OAuthFlow |
getAuthorizationCode()
OAuth Authorization Code flow; previously called accessCode in OpenAPI 2.0
|
OAuthFlow |
getClientCredentials()
OAuth Client Credential flow; previously called application in OpenAPI 2.0
|
OAuthFlow |
getImplicit()
This method returns the implicit property from OAuthFlows instance.
|
OAuthFlow |
getPassword()
OAuth Resource Owner Password flow
|
default OAuthFlows |
implicit(OAuthFlow implicit)
This method sets the implicit property of OAuthFlows instance to the given implicit argument and returns the modified instance.
|
default OAuthFlows |
password(OAuthFlow password)
OAuth Resource Owner Password flow
|
void |
setAuthorizationCode(OAuthFlow authorizationCode)
OAuth Authorization Code flow; previously called accessCode in OpenAPI 2.0
|
void |
setClientCredentials(OAuthFlow clientCredentials)
OAuth Client Credential flow; previously called application in OpenAPI 2.0
|
void |
setImplicit(OAuthFlow implicit)
This method sets the implicit property of OAuthFlows instance to the given implicit argument.
|
void |
setPassword(OAuthFlow password)
OAuth Resource Owner Password flow
|
addExtension, extensions, getExtensions, removeExtension, setExtensions
OAuthFlow getImplicit()
void setImplicit(OAuthFlow implicit)
implicit
- the OauthFlow instancedefault OAuthFlows implicit(OAuthFlow implicit)
implicit
- the OauthFlow instanceOAuthFlow getPassword()
This method returns the password property from OAuthFlows instance.
void setPassword(OAuthFlow password)
This method sets the password property of OAuthFlows instance to the given password argument.
password
- the OAuthFlow instancedefault OAuthFlows password(OAuthFlow password)
This method sets the password property of an OAuthFlows instance to the given password argument and returns the modified instance.
password
- the OauthFlow instanceOAuthFlow getClientCredentials()
This method returns the clientCredentials property from OAuthFlows instance.
void setClientCredentials(OAuthFlow clientCredentials)
This method sets the clientCredentials property of OAuthFlows instance to the given clientCredentials argument.
clientCredentials
- the OauthFlow instancedefault OAuthFlows clientCredentials(OAuthFlow clientCredentials)
This method sets the clientCredentials property of OAuthFlows instance to the given clientCredentials argument and returns the modified instance.
clientCredentials
- the OauthFlow instanceOAuthFlow getAuthorizationCode()
This method returns the authorizationCode property from OAuthFlows instance.
void setAuthorizationCode(OAuthFlow authorizationCode)
This method sets the authorizationCode property of OAuthFlows instance to the given authorizationCode argument.
authorizationCode
- the OauthFlow instancedefault OAuthFlows authorizationCode(OAuthFlow authorizationCode)
This method sets the authorizationCode property of OAuthFlows instance to the given authorizationCode argument and returns the modified instance.
authorizationCode
- the OauthFlow instance