public class OAuthFlowObjectBuilder extends Object
Constructor and Description |
---|
OAuthFlowObjectBuilder() |
Modifier and Type | Method and Description |
---|---|
OAuthFlowObject |
build() |
static OAuthFlowObjectBuilder |
oAuthFlowObject()
Creates a builder for an
OAuthFlowObject |
OAuthFlowObjectBuilder |
withAuthorizationUrl(URI authorizationUrl) |
OAuthFlowObjectBuilder |
withRefreshUrl(URI refreshUrl) |
OAuthFlowObjectBuilder |
withScopes(Map<String,String> scopes) |
OAuthFlowObjectBuilder |
withTokenUrl(URI tokenUrl) |
public OAuthFlowObjectBuilder withAuthorizationUrl(URI authorizationUrl)
authorizationUrl
- REQUIRED. The authorization URL to be used for this flow.public OAuthFlowObjectBuilder withTokenUrl(URI tokenUrl)
tokenUrl
- REQUIRED. The token URL to be used for this flow. This MUST be in the form of a URL.public OAuthFlowObjectBuilder withRefreshUrl(URI refreshUrl)
refreshUrl
- The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL.public OAuthFlowObjectBuilder withScopes(Map<String,String> scopes)
scopes
- REQUIRED. The available scopes for the OAuth2 security scheme. A map between the scope name and a short description for it.public OAuthFlowObject build()
public static OAuthFlowObjectBuilder oAuthFlowObject()
OAuthFlowObject
Copyright © 2017–2019. All rights reserved.