Class BitbucketTlsSocketStrategy

java.lang.Object
com.cloudbees.jenkins.plugins.bitbucket.impl.client.BitbucketTlsSocketStrategy
All Implemented Interfaces:
org.apache.hc.client5.http.ssl.TlsSocketStrategy

@Contract(threading=SAFE) public class BitbucketTlsSocketStrategy extends Object implements org.apache.hc.client5.http.ssl.TlsSocketStrategy
Custom implementation of a TlsSocketStrategu to replicate what org.apache.http.impl.conn.DefaultHttpClientConnectionOperator#getSocketFactoryRegistry(HttpContext) did in Apache Client HTTP 4 implementation.
  • Field Details

  • Constructor Details

    • BitbucketTlsSocketStrategy

      public BitbucketTlsSocketStrategy()
  • Method Details

    • upgrade

      public SSLSocket upgrade(Socket socket, String target, int port, Object attachment, org.apache.hc.core5.http.protocol.HttpContext context) throws IOException
      Specified by:
      upgrade in interface org.apache.hc.client5.http.ssl.TlsSocketStrategy
      Throws:
      IOException