Class OAuthFlowObjectBuilder


  • public class OAuthFlowObjectBuilder
    extends java.lang.Object
    Configuration details for a supported OAuth Flow
    • Constructor Detail

      • OAuthFlowObjectBuilder

        public OAuthFlowObjectBuilder()
    • 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