Interface AuthorizationServerMetadata.Builder

  • Method Details

    • issuer

      Identifier the authorization server uses for itself, as it appears in the tokens it issues.

      Parameters:
      issuer - Identifier the authorization server uses for itself, as it appears in the tokens it issues.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tokenEndpoint

      AuthorizationServerMetadata.Builder tokenEndpoint(String tokenEndpoint)

      An HTTPS URL identifying or exposed by an authorization server, its issuer identifier, its authorization endpoint, or its token endpoint.

      Parameters:
      tokenEndpoint - An HTTPS URL identifying or exposed by an authorization server, its issuer identifier, its authorization endpoint, or its token endpoint.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • authorizationEndpoint

      AuthorizationServerMetadata.Builder authorizationEndpoint(String authorizationEndpoint)

      Where the end user is sent to grant consent. Required in practice for a provider using AUTHORIZATION_CODE, which has no other source for it; a provider that resolves its endpoints from discoveryUrl instead takes it from the discovery document. Optional so the grants that never redirect a browser need not supply one.

      Parameters:
      authorizationEndpoint - Where the end user is sent to grant consent. Required in practice for a provider using AUTHORIZATION_CODE, which has no other source for it; a provider that resolves its endpoints from discoveryUrl instead takes it from the discovery document. Optional so the grants that never redirect a browser need not supply one.
      Returns:
      Returns a reference to this object so that method calls can be chained together.