Class HeaderAuthentication

java.lang.Object
io.jenkins.plugins.opentelemetry.authentication.OtlpAuthentication
io.jenkins.plugins.opentelemetry.authentication.HeaderAuthentication
All Implemented Interfaces:
ExtensionPoint, Describable<OtlpAuthentication>

@Extension public class HeaderAuthentication extends OtlpAuthentication
  • Constructor Details

    • HeaderAuthentication

      @DataBoundConstructor public HeaderAuthentication()
  • Method Details

    • enrichOpenTelemetryAutoConfigureConfigProperties

      public void enrichOpenTelemetryAutoConfigureConfigProperties(Map<String,String> configProperties)
      Specified by:
      enrichOpenTelemetryAutoConfigureConfigProperties in class OtlpAuthentication
    • enrichOtelEnvironmentVariables

      public void enrichOtelEnvironmentVariables(Map<String,String> environmentVariables)
      Description copied from class: OtlpAuthentication
      Enrich the provided environment variables injecting the authentication settings, typically appending credentials to the OTEL_EXPORTER_OTLP_HEADERS variable
      Specified by:
      enrichOtelEnvironmentVariables in class OtlpAuthentication
      Parameters:
      environmentVariables - the builder to configure
    • getHeaderName

      public String getHeaderName()
    • setHeaderName

      @DataBoundSetter public void setHeaderName(String headerName)
    • getHeaderValueId

      public String getHeaderValueId()
    • setHeaderValueId

      @DataBoundSetter public void setHeaderValueId(String headerValueId)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object