Tabnine Logo
S3Signer.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
com.amazonaws.services.s3.internal.S3Signer
constructor

Best Java code snippets using com.amazonaws.services.s3.internal.S3Signer.<init> (Showing top 5 results out of 315)

origin: aws/aws-sdk-java

private S3Signer createSigV2Signer(final Request<?> request,
                    final String bucketName,
                    final String key) {
  String resourcePath = "/" +
      ((bucketName != null) ? bucketName + "/" : "") +
      ((key != null) ? key : "");
  return new S3Signer(request.getHttpMethod().toString(), resourcePath);
}
origin: aws-amplify/aws-sdk-android

private S3Signer createSigV2Signer(final Request<?> request,
                  final String bucketName,
                  final String key) {
  final String resourcePath = "/" +
      ((bucketName != null) ? bucketName + "/" : "") +
      ((key != null) ? key : "");
  return new S3Signer(request.getHttpMethod().toString(), resourcePath);
}
origin: aws-amplify/aws-sdk-android

@Test
public void testSign() throws URISyntaxException {
  final GetObjectRequest gr = new GetObjectRequest("test-bucket123456", "TestFile.txt");
  final Request<?> req = new DefaultRequest(gr, Constants.S3_SERVICE_DISPLAY_NAME);
  req.setHttpMethod(HttpMethodName.GET);
  req.setResourcePath("/test-bucket123456/TestFile.txt");
  req.setEndpoint(new URI("https://test-bucket123456.s3-us-west-2.amazonaws.com"));
  req.addHeader(Headers.CONTENT_TYPE, "application/x-www-form-urlencoded; charset=utf-8");
  final S3Signer signer = new S3Signer("GET", "/test-bucket123456/TestFile.txt");
  // These are fake bogus credentials just for tesitng
  signer.sign(req, new BasicAWSCredentials(
      "AKI11BOGUS11ACCESS11KEYOZQ", "LYd/ZD611BOGUS11SECRET11KEYSiD6"), new Date(
      1431374979760L));
  assertEquals(getSignature(req), "kD6n4rzH5+82Nw5wFIhaD1pKXNM=");
}
origin: com.amazonaws/aws-android-sdk-s3

private S3Signer createSigV2Signer(final Request<?> request,
                  final String bucketName,
                  final String key) {
  final String resourcePath = "/" +
      ((bucketName != null) ? bucketName + "/" : "") +
      ((key != null) ? key : "");
  return new S3Signer(request.getHttpMethod().toString(), resourcePath);
}
origin: Nextdoor/bender

private S3Signer createSigV2Signer(final Request<?> request,
                    final String bucketName,
                    final String key) {
  String resourcePath = "/" +
      ((bucketName != null) ? bucketName + "/" : "") +
      ((key != null) ? key : "");
  return new S3Signer(request.getHttpMethod().toString(), resourcePath);
}
com.amazonaws.services.s3.internalS3Signer<init>

Javadoc

Create a dummy instance of the S3Signer. This constructor will be invoked by internal config via reflection.

Popular methods of S3Signer

  • addSessionCredentials
  • getSignatureDate
  • sanitizeCredentials
  • sign
  • getTimeOffset

Popular in Java

  • Parsing JSON documents to java classes using gson
  • addToBackStack (FragmentTransaction)
  • getResourceAsStream (ClassLoader)
  • getSystemService (Context)
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • JFileChooser (javax.swing)
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now