Class BearerTokenAuthentication
- java.lang.Object
-
- io.jenkins.plugins.opentelemetry.authentication.OtlpAuthentication
-
- io.jenkins.plugins.opentelemetry.authentication.BearerTokenAuthentication
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<OtlpAuthentication>
@Extension public class BearerTokenAuthentication extends OtlpAuthentication
See https://tools.ietf.org/html/rfc6750
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BearerTokenAuthentication.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 BearerTokenAuthentication()
BearerTokenAuthentication(String tokenId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ListBoxModel
doFillTokenIdItems()
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
getTokenId()
int
hashCode()
void
setTokenId(String tokenId)
String
toString()
-
Methods inherited from class io.jenkins.plugins.opentelemetry.authentication.OtlpAuthentication
allDescriptors, getDescriptor
-
-
-
-
Constructor Detail
-
BearerTokenAuthentication
@DataBoundConstructor public BearerTokenAuthentication()
-
BearerTokenAuthentication
public BearerTokenAuthentication(String tokenId)
-
-
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
-
getTokenId
public String getTokenId()
-
setTokenId
@DataBoundSetter public void setTokenId(String tokenId)
-
doFillTokenIdItems
public ListBoxModel doFillTokenIdItems()
-
-