Class HttpBasicAuthProvider.Builder

    • Method Detail

      • config

        public HttpBasicAuthProvider.Builder config​(Config config)
        Update this builder from configuration.
        Parameters:
        config - configuration to read, located on the node of the http basic authentication provider
        Returns:
        updated builder instance
      • subjectType

        public HttpBasicAuthProvider.Builder subjectType​(SubjectType subjectType)
        Principal type this provider extracts (and also propagates).
        Parameters:
        subjectType - type of principal
        Returns:
        updated builder instance
      • addUserStore

        public HttpBasicAuthProvider.Builder addUserStore​(SecureUserStore store)
        Add a user store to the list of stores used by this provider.
        Parameters:
        store - user store to add
        Returns:
        updated builder instance
      • realm

        public HttpBasicAuthProvider.Builder realm​(String realm)
        Set the realm to use when challenging users.
        Parameters:
        realm - security realm name to send to browser (or any other client) when unauthenticated
        Returns:
        updated builder instance
      • optional

        public HttpBasicAuthProvider.Builder optional​(boolean optional)
        Whether authentication is required. By default, request will fail if the authentication cannot be verified. If set to false, request will process and this provider will abstain.
        Parameters:
        optional - whether authentication is optional (true) or required (false)
        Returns:
        updated builder instance
      • addOutboundTarget

        public HttpBasicAuthProvider.Builder addOutboundTarget​(OutboundTarget target)
        Add a new outbound target to configure identity propagation or explicit username/password.
        Parameters:
        target - outbound target
        Returns:
        updated builder instance