Class BitbucketUsernamePasswordAuthenticator
java.lang.Object
com.cloudbees.jenkins.plugins.bitbucket.impl.credentials.BitbucketUsernamePasswordAuthenticator
- All Implemented Interfaces:
BitbucketAuthenticator
public class BitbucketUsernamePasswordAuthenticator
extends Object
implements BitbucketAuthenticator
Authenticator that uses a username and password (probably the default)
-
Field Summary
Fields inherited from interface com.cloudbees.jenkins.plugins.bitbucket.api.BitbucketAuthenticator
BITBUCKET_INSTANCE_TYPE, BITBUCKET_INSTANCE_TYPE_CLOUD, BITBUCKET_INSTANCE_TYPE_SERVER, SCHEME, SERVER_URL
-
Constructor Summary
ConstructorsConstructorDescriptionBitbucketUsernamePasswordAuthenticator
(com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials credentials) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
configureRequest
(org.apache.hc.core5.http.HttpRequest request) Configures anHttpRequest
.getId()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.cloudbees.jenkins.plugins.bitbucket.api.BitbucketAuthenticator
configureBuilder, configureContext, getCredentialsForSCM
-
Constructor Details
-
BitbucketUsernamePasswordAuthenticator
public BitbucketUsernamePasswordAuthenticator(com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials credentials) Constructor.- Parameters:
credentials
- the username/password that will be used
-
-
Method Details
-
configureRequest
public void configureRequest(org.apache.hc.core5.http.HttpRequest request) Description copied from interface:BitbucketAuthenticator
Configures anHttpRequest
. Override this if your authentication method needs to set headers on a per-request basis.- Specified by:
configureRequest
in interfaceBitbucketAuthenticator
- Parameters:
request
- the request.
-
getId
- Specified by:
getId
in interfaceBitbucketAuthenticator
- Returns:
- id of the credentials used.
-