Interface TransportSubjectBuilder


public interface TransportSubjectBuilder

Builds a Subject based on information available at the transport layer, before any requests have been received from the client.

A TransportSubjectBuilder instance is constructed by a TransportSubjectBuilderService, which in turn is specified on a virtual cluster.

See SaslSubjectBuilder for a similar interface use for building a Subject based on SASL authentication.

  • Method Details

    • buildTransportSubject

      CompletionStage<Subject> buildTransportSubject(TransportSubjectBuilder.Context context)
      Returns an asynchronous result which completes with the Subject built from the given context.
      Parameters:
      context - The context of the connection.
      Returns:
      The Subject. The returned stage should fail with an SubjectBuildingException if the builder was not able to build a subject.