Class BitbucketOAuthAuthenticator

    • Constructor Detail

      • BitbucketOAuthAuthenticator

        public BitbucketOAuthAuthenticator​(com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials credentials)
        Constructor.
        Parameters:
        credentials - the key/pass that will be used
    • Method Detail

      • configureRequest

        public void configureRequest​(org.apache.http.HttpRequest request)
        Set up request with token in header
        Overrides:
        configureRequest in class BitbucketAuthenticator
        Parameters:
        request - the request.
      • getUserUri

        public String getUserUri()
        Description copied from class: BitbucketAuthenticator
        Return the user to be used in the clone Uri. Override this if your authentication method needs to set the user in the repository Uri
        Overrides:
        getUserUri in class BitbucketAuthenticator
        Returns:
        user name to use in the repository Uri