Package io.muserver.openapi
Class OAuthFlowObjectBuilder
- java.lang.Object
-
- io.muserver.openapi.OAuthFlowObjectBuilder
-
public class OAuthFlowObjectBuilder extends java.lang.Object
Configuration details for a supported OAuth Flow
-
-
Constructor Summary
Constructors Constructor Description OAuthFlowObjectBuilder()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description OAuthFlowObject
build()
static OAuthFlowObjectBuilder
oAuthFlowObject()
Creates a builder for anOAuthFlowObject
OAuthFlowObjectBuilder
withAuthorizationUrl(java.net.URI authorizationUrl)
OAuthFlowObjectBuilder
withRefreshUrl(java.net.URI refreshUrl)
OAuthFlowObjectBuilder
withScopes(java.util.Map<java.lang.String,java.lang.String> scopes)
OAuthFlowObjectBuilder
withTokenUrl(java.net.URI tokenUrl)
-
-
-
Method Detail
-
withAuthorizationUrl
public OAuthFlowObjectBuilder withAuthorizationUrl(java.net.URI authorizationUrl)
- Parameters:
authorizationUrl
- REQUIRED. The authorization URL to be used for this flow.- Returns:
- The current builder
-
withTokenUrl
public OAuthFlowObjectBuilder withTokenUrl(java.net.URI tokenUrl)
- Parameters:
tokenUrl
- REQUIRED. The token URL to be used for this flow. This MUST be in the form of a URL.- Returns:
- The current builder
-
withRefreshUrl
public OAuthFlowObjectBuilder withRefreshUrl(java.net.URI refreshUrl)
- Parameters:
refreshUrl
- The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL.- Returns:
- The current builder
-
withScopes
public OAuthFlowObjectBuilder withScopes(java.util.Map<java.lang.String,java.lang.String> scopes)
- Parameters:
scopes
- REQUIRED. The available scopes for the OAuth2 security scheme. A map between the scope name and a short description for it.- Returns:
- The current builder
-
build
public OAuthFlowObject build()
- Returns:
- A new object
-
oAuthFlowObject
public static OAuthFlowObjectBuilder oAuthFlowObject()
Creates a builder for anOAuthFlowObject
- Returns:
- A new builder
-
-