Interface BitbucketCredentials

All Superinterfaces:
RequestConfiguration
All Known Implementing Classes:
BitbucketCredentials.AnonymousCredentials

public interface BitbucketCredentials extends RequestConfiguration
Represents Bitbucket credential that will be used to make remote calls to Bitbucket server.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static final class 
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    The authorization header key which will be sent with all authorized request.
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    apply(okhttp3.Request.Builder builder)
    Update the supplied builder with the configuration required.
    Convert this representation to authorization header value.
  • Field Details

    • ANONYMOUS_CREDENTIALS

      static final BitbucketCredentials ANONYMOUS_CREDENTIALS
      The authorization header key which will be sent with all authorized request.
  • Method Details

    • toHeaderValue

      String toHeaderValue()
      Convert this representation to authorization header value.
      Returns:
      header value.
    • apply

      default void apply(okhttp3.Request.Builder builder)
      Description copied from interface: RequestConfiguration
      Update the supplied builder with the configuration required. The order in which configurations are applied is not defined nor guaranteed to be the same between invocations.
      Specified by:
      apply in interface RequestConfiguration
      Parameters:
      builder - the request builder, some RequestConfigurations may already have been applied to the builder