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
-
-
Constructor Summary
Constructors Constructor Description JenkinsCredentialsToApacheHttpCredentialsAdapter(Supplier<String> jenkinsCredentialsIdProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getPassword()
Principal
getUserPrincipal()
String
toString()
-
-
-
Method Detail
-
getUserPrincipal
public Principal getUserPrincipal() throws CredentialsNotFoundException
- Specified by:
getUserPrincipal
in interfaceorg.apache.http.auth.Credentials
- Throws:
CredentialsNotFoundException
-
getPassword
public String getPassword() throws CredentialsNotFoundException
- Specified by:
getPassword
in interfaceorg.apache.http.auth.Credentials
- Throws:
CredentialsNotFoundException
-
-