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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
HeaderAuthentication.DescriptorImpl
-
Nested classes/interfaces inherited from class io.jenkins.plugins.opentelemetry.authentication.OtlpAuthentication
OtlpAuthentication.AbstractDescriptor
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description HeaderAuthentication()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
enrichOpenTelemetryAutoConfigureConfigProperties(Map<String,String> configProperties)
void
enrichOtelEnvironmentVariables(Map<String,String> environmentVariables)
Enrich the provided environment variables injecting the authentication settings, typically appending credentials to theOTEL_EXPORTER_OTLP_HEADERS
variableboolean
equals(Object o)
String
getHeaderName()
String
getHeaderValueId()
int
hashCode()
void
setHeaderName(String headerName)
void
setHeaderValueId(String headerValueId)
String
toString()
-
Methods inherited from class io.jenkins.plugins.opentelemetry.authentication.OtlpAuthentication
allDescriptors, getDescriptor
-
-
-
-
Method Detail
-
enrichOpenTelemetryAutoConfigureConfigProperties
public void enrichOpenTelemetryAutoConfigureConfigProperties(Map<String,String> configProperties)
- Specified by:
enrichOpenTelemetryAutoConfigureConfigProperties
in classOtlpAuthentication
-
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 theOTEL_EXPORTER_OTLP_HEADERS
variable- Specified by:
enrichOtelEnvironmentVariables
in classOtlpAuthentication
- 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)
-
-