Class JenkinsCredentialsToApacheHttpCredentialsAdapter
java.lang.Object
io.jenkins.plugins.opentelemetry.jenkins.JenkinsCredentialsToApacheHttpCredentialsAdapter
- All Implemented Interfaces:
org.apache.http.auth.Credentials
public class JenkinsCredentialsToApacheHttpCredentialsAdapter
extends Object
implements org.apache.http.auth.Credentials
Adapter to convert Jenkins credentials to Apache HTTP credentials.
-
Constructor Summary
ConstructorDescriptionJenkinsCredentialsToApacheHttpCredentialsAdapter
(String jenkinsCredentialsId) JenkinsCredentialsToApacheHttpCredentialsAdapter
(Supplier<String> jenkinsCredentialsIdProvider) Deprecated. -
Method Summary
-
Constructor Details
-
JenkinsCredentialsToApacheHttpCredentialsAdapter
@Deprecated public JenkinsCredentialsToApacheHttpCredentialsAdapter(Supplier<String> jenkinsCredentialsIdProvider) Deprecated. -
JenkinsCredentialsToApacheHttpCredentialsAdapter
-
-
Method Details
-
getUserPrincipal
- Specified by:
getUserPrincipal
in interfaceorg.apache.http.auth.Credentials
- Throws:
CredentialsNotFoundException
-
getPassword
- Specified by:
getPassword
in interfaceorg.apache.http.auth.Credentials
- Throws:
CredentialsNotFoundException
-
toString
-
JenkinsCredentialsToApacheHttpCredentialsAdapter(String)
instead