Top Description Methods
org.eclipse.microprofile.openapi.models.security

public Interface OAuthFlows

extends Constructible, Extensible<OAuthFlows>
Imports
org.eclipse.microprofile.openapi.models.Constructible, .Extensible

Configuration of the supported OAuthFlows
See Also
OpenAPI Specification OAuth Flows Object

Method Summary

Modifier and TypeMethod and Description
public default OAuthFlows

Returns:

OAuthFlows instance with the set authorizationCode property
authorizationCode
(OAuthFlow
the OauthFlow instance
authorizationCode
)

OAuth Authorization Code flow; previously called accessCode in OpenAPI 2.0

This method sets the authorizationCode property of OAuthFlows instance to the given authorizationCode argument and returns the modified instance.

public default OAuthFlows

Returns:

OAuthFlows instance with the set clientCredentials property
clientCredentials
(OAuthFlow
the OauthFlow instance
clientCredentials
)

OAuth Client Credential flow; previously called application in OpenAPI 2.0

This method sets the clientCredentials property of OAuthFlows instance to the given clientCredentials argument and returns the modified instance.

public OAuthFlow

Returns:

OAuthFlow authorizationCode
getAuthorizationCode
()

OAuth Authorization Code flow; previously called accessCode in OpenAPI 2.0

This method returns the authorizationCode property from OAuthFlows instance.

public OAuthFlow

Returns:

OAuthFlow clientCredentials
getClientCredentials
()

OAuth Client Credential flow; previously called application in OpenAPI 2.0

This method returns the clientCredentials property from OAuthFlows instance.

public OAuthFlow

Returns:

OAuthFlow implicit
getImplicit
()

This method returns the implicit property from OAuthFlows instance.

public OAuthFlow

Returns:

OAuthFlow password
getPassword
()

OAuth Resource Owner Password flow

This method returns the password property from OAuthFlows instance.

public default OAuthFlows

Returns:

OAuthFlows instance with the set implicit property
implicit
(OAuthFlow
the OauthFlow instance
implicit
)

This method sets the implicit property of OAuthFlows instance to the given implicit argument and returns the modified instance.

public default OAuthFlows

Returns:

OAuthFlows instance with the set password property
password
(OAuthFlow
the OauthFlow instance
password
)

OAuth Resource Owner Password flow

This method sets the password property of an OAuthFlows instance to the given password argument and returns the modified instance.

public void
setAuthorizationCode(OAuthFlow
the OauthFlow instance
authorizationCode
)

OAuth Authorization Code flow; previously called accessCode in OpenAPI 2.0

This method sets the authorizationCode property of OAuthFlows instance to the given authorizationCode argument.

public void
setClientCredentials(OAuthFlow
the OauthFlow instance
clientCredentials
)

OAuth Client Credential flow; previously called application in OpenAPI 2.0

This method sets the clientCredentials property of OAuthFlows instance to the given clientCredentials argument.

public void
setImplicit(OAuthFlow
the OauthFlow instance
implicit
)

This method sets the implicit property of OAuthFlows instance to the given implicit argument.

public void
setPassword(OAuthFlow
the OAuthFlow instance
password
)

OAuth Resource Owner Password flow

This method sets the password property of OAuthFlows instance to the given password argument.

Inherited from org.eclipse.microprofile.openapi.models.Extensible:
addExtensionextensionsgetExtensionsremoveExtensionsetExtensions

Method Detail

authorizationCodeback to summary
public default OAuthFlows authorizationCode(OAuthFlow authorizationCode)

OAuth Authorization Code flow; previously called accessCode in OpenAPI 2.0

This method sets the authorizationCode property of OAuthFlows instance to the given authorizationCode argument and returns the modified instance.

Parameters
authorizationCode:OAuthFlow

the OauthFlow instance

Returns:OAuthFlows

OAuthFlows instance with the set authorizationCode property

clientCredentialsback to summary
public default OAuthFlows clientCredentials(OAuthFlow clientCredentials)

OAuth Client Credential flow; previously called application in OpenAPI 2.0

This method sets the clientCredentials property of OAuthFlows instance to the given clientCredentials argument and returns the modified instance.

Parameters
clientCredentials:OAuthFlow

the OauthFlow instance

Returns:OAuthFlows

OAuthFlows instance with the set clientCredentials property

getAuthorizationCodeback to summary
public OAuthFlow getAuthorizationCode()

OAuth Authorization Code flow; previously called accessCode in OpenAPI 2.0

This method returns the authorizationCode property from OAuthFlows instance.

Returns:OAuthFlow

OAuthFlow authorizationCode

getClientCredentialsback to summary
public OAuthFlow getClientCredentials()

OAuth Client Credential flow; previously called application in OpenAPI 2.0

This method returns the clientCredentials property from OAuthFlows instance.

Returns:OAuthFlow

OAuthFlow clientCredentials

getImplicitback to summary
public OAuthFlow getImplicit()

This method returns the implicit property from OAuthFlows instance.

Returns:OAuthFlow

OAuthFlow implicit

getPasswordback to summary
public OAuthFlow getPassword()

OAuth Resource Owner Password flow

This method returns the password property from OAuthFlows instance.

Returns:OAuthFlow

OAuthFlow password

implicitback to summary
public default OAuthFlows implicit(OAuthFlow implicit)

This method sets the implicit property of OAuthFlows instance to the given implicit argument and returns the modified instance.

Parameters
implicit:OAuthFlow

the OauthFlow instance

Returns:OAuthFlows

OAuthFlows instance with the set implicit property

passwordback to summary
public default OAuthFlows password(OAuthFlow password)

OAuth Resource Owner Password flow

This method sets the password property of an OAuthFlows instance to the given password argument and returns the modified instance.

Parameters
password:OAuthFlow

the OauthFlow instance

Returns:OAuthFlows

OAuthFlows instance with the set password property

setAuthorizationCodeback to summary
public void setAuthorizationCode(OAuthFlow authorizationCode)

OAuth Authorization Code flow; previously called accessCode in OpenAPI 2.0

This method sets the authorizationCode property of OAuthFlows instance to the given authorizationCode argument.

Parameters
authorizationCode:OAuthFlow

the OauthFlow instance

setClientCredentialsback to summary
public void setClientCredentials(OAuthFlow clientCredentials)

OAuth Client Credential flow; previously called application in OpenAPI 2.0

This method sets the clientCredentials property of OAuthFlows instance to the given clientCredentials argument.

Parameters
clientCredentials:OAuthFlow

the OauthFlow instance

setImplicitback to summary
public void setImplicit(OAuthFlow implicit)

This method sets the implicit property of OAuthFlows instance to the given implicit argument.

Parameters
implicit:OAuthFlow

the OauthFlow instance

setPasswordback to summary
public void setPassword(OAuthFlow password)

OAuth Resource Owner Password flow

This method sets the password property of OAuthFlows instance to the given password argument.

Parameters
password:OAuthFlow

the OAuthFlow instance