Class BitbucketMultiCredentialsAuthenticator
java.lang.Object
com.cloudbees.jenkins.plugins.bitbucket.impl.credentials.BitbucketMultiCredentialsAuthenticator
- All Implemented Interfaces:
BitbucketAuthenticator
public class BitbucketMultiCredentialsAuthenticator
extends Object
implements BitbucketAuthenticator
-
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
ConstructorsConstructorDescriptionBitbucketMultiCredentialsAuthenticator(List<BitbucketAuthenticator> autheticators) -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigureRequest(org.apache.hc.core5.http.HttpRequest request) Configures anHttpRequest.getId()voidSignal the authenticator has reach the API limit.booleanReturns if this credentials manages of API limit.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.cloudbees.jenkins.plugins.bitbucket.api.BitbucketAuthenticator
configureBuilder, configureContext, getCredentialsForSCM
-
Constructor Details
-
BitbucketMultiCredentialsAuthenticator
-
-
Method Details
-
configureRequest
public void configureRequest(org.apache.hc.core5.http.HttpRequest request) Description copied from interface:BitbucketAuthenticatorConfigures anHttpRequest. Override this if your authentication method needs to set headers on a per-request basis.- Specified by:
configureRequestin interfaceBitbucketAuthenticator- Parameters:
request- the request.
-
getId
- Specified by:
getIdin interfaceBitbucketAuthenticator- Returns:
- id of the credentials used.
-
supportsRateLimit
public boolean supportsRateLimit()Description copied from interface:BitbucketAuthenticatorReturns if this credentials manages of API limit.- Specified by:
supportsRateLimitin interfaceBitbucketAuthenticator
-
markLimitReached
public void markLimitReached()Description copied from interface:BitbucketAuthenticatorSignal the authenticator has reach the API limit.- Specified by:
markLimitReachedin interfaceBitbucketAuthenticator
-