Package io.muserver.openapi
Class OAuthFlowsObjectBuilder
- java.lang.Object
-
- io.muserver.openapi.OAuthFlowsObjectBuilder
-
public class OAuthFlowsObjectBuilder extends java.lang.Object
Allows 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 OAuthFlowsObject
build()
static OAuthFlowsObjectBuilder
oAuthFlowsObject()
Creates a builder for anOAuthFlowsObject
OAuthFlowsObjectBuilder
withAuthorizationCode(OAuthFlowObject authorizationCode)
OAuthFlowsObjectBuilder
withClientCredentials(OAuthFlowObject clientCredentials)
OAuthFlowsObjectBuilder
withImplicit(OAuthFlowObject implicit)
OAuthFlowsObjectBuilder
withPassword(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 calledapplication
in OpenAPI 2.0.- Returns:
- The current builder
-
withAuthorizationCode
public OAuthFlowsObjectBuilder withAuthorizationCode(OAuthFlowObject authorizationCode)
- Parameters:
authorizationCode
- Configuration for the OAuth Authorization Code flow. Previously calledaccessCode
in 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
-
-