Interface OutboundSecurityProvider

    • Method Detail

      • isOutboundSupported

        default boolean isOutboundSupported​(ProviderRequest providerRequest,
                                            SecurityEnvironment outboundEnv,
                                            EndpointConfig outboundConfig)
        Check if the path to be executed is supported by this security provider. Defaults to true.
        Parameters:
        providerRequest - context with environment, subject(s) etc. that was received
        outboundEnv - environment for outbound call
        outboundConfig - outbound endpoint configuration
        Returns:
        true if this identity propagator can generate required headers for the path defined
      • outboundSecurity

        CompletionStage<OutboundSecurityResponse> outboundSecurity​(ProviderRequest providerRequest,
                                                                   SecurityEnvironment outboundEnv,
                                                                   EndpointConfig outboundConfig)
        Creates necessary updates to headers and entity needed for outbound security (e.g. identity propagation, s2s security etc.). This method will be invoked for outbound requests ONLY.
        Parameters:
        providerRequest - context with environment, subject(s) etc. that was received
        outboundEnv - environment for outbound call
        outboundConfig - outbound endpoint configuration
        Returns:
        response with generated headers and other possible configuration
        See Also:
        OutboundSecurityResponse.builder()