Package io.muserver.openapi
Class OAuthFlowsObjectBuilder
- java.lang.Object
-
- io.muserver.openapi.OAuthFlowsObjectBuilder
-
public class OAuthFlowsObjectBuilder extends java.lang.ObjectAllows configuration of the supported OAuth Flows.
-
-
Constructor Summary
Constructors Constructor Description OAuthFlowsObjectBuilder()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description OAuthFlowsObjectbuild()static OAuthFlowsObjectBuilderoAuthFlowsObject()Creates a builder for anOAuthFlowsObjectOAuthFlowsObjectBuilderwithAuthorizationCode(OAuthFlowObject authorizationCode)OAuthFlowsObjectBuilderwithClientCredentials(OAuthFlowObject clientCredentials)OAuthFlowsObjectBuilderwithImplicit(OAuthFlowObject implicit)OAuthFlowsObjectBuilderwithPassword(OAuthFlowObject password)
-
-
-
Method Detail
-
withImplicit
public OAuthFlowsObjectBuilder withImplicit(OAuthFlowObject implicit)
- Parameters:
implicit- Configuration for the OAuth Implicit flow- Returns:
- The current builder
-
withPassword
public OAuthFlowsObjectBuilder withPassword(OAuthFlowObject password)
- Parameters:
password- Configuration for the OAuth Resource Owner Password flow- Returns:
- The current builder
-
withClientCredentials
public OAuthFlowsObjectBuilder withClientCredentials(OAuthFlowObject clientCredentials)
- Parameters:
clientCredentials- Configuration for the OAuth Client Credentials flow. Previously calledapplicationin OpenAPI 2.0.- Returns:
- The current builder
-
withAuthorizationCode
public OAuthFlowsObjectBuilder withAuthorizationCode(OAuthFlowObject authorizationCode)
- Parameters:
authorizationCode- Configuration for the OAuth Authorization Code flow. Previously calledaccessCodein OpenAPI 2.0.- Returns:
- The current builder
-
build
public OAuthFlowsObject build()
- Returns:
- A new object
-
oAuthFlowsObject
public static OAuthFlowsObjectBuilder oAuthFlowsObject()
Creates a builder for anOAuthFlowsObject- Returns:
- A new builder
-
-