public CephServiceS3Impl()

in src/main/java/com/epam/digital/data/platform/integration/ceph/service/impl/CephServiceS3Impl.java [54:65]


  public CephServiceS3Impl(String cephEndpoint, String cephAccessKey, String cephSecretKey) {
    var credentials = new AWSStaticCredentialsProvider(
        new BasicAWSCredentials(cephAccessKey, cephSecretKey));
    var clientConfig = new ClientConfiguration();
    clientConfig.setProtocol(Protocol.HTTP);
    cephAmazonS3 = AmazonS3ClientBuilder.standard()
        .withCredentials(credentials)
        .withClientConfiguration(clientConfig)
        .withEndpointConfiguration(new EndpointConfiguration(cephEndpoint, null))
        .withPathStyleAccessEnabled(true)
        .build();
  }