Class ApacheTrustSelfSigned

java.lang.Object
com.vmware.vim25.ws.ApacheTrustSelfSigned

public class ApacheTrustSelfSigned extends Object
Created by Michael Rice on 8/15/14.

Copyright 2014 Michael Rice

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

  • Constructor Details

    • ApacheTrustSelfSigned

      public ApacheTrustSelfSigned()
  • Method Details

    • trust

      public static org.apache.hc.client5.http.ssl.TlsSocketStrategy trust()
      Returns a TLS socket strategy that accepts all certificates without validation and skips hostname verification.
      Returns:
      a trust-all TlsSocketStrategy, or null if the TLS context cannot be initialised