Tabnine Logo
S3Signer.sign
Code IndexAdd Tabnine to your IDE (free)

How to use
sign
method
in
com.amazonaws.services.s3.internal.S3Signer

Best Java code snippets using com.amazonaws.services.s3.internal.S3Signer.sign (Showing top 3 results out of 315)

origin: aws-amplify/aws-sdk-android

@Override
public void sign(Request<?> request, AWSCredentials credentials) {
  sign(request, credentials, null);
}
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

@Override
public void sign(Request<?> request, AWSCredentials credentials) {
  sign(request, credentials, null);
}
com.amazonaws.services.s3.internalS3Signersign

Javadoc

Signs the request, using the passed in date. overrideDate is only used for tesitng purposes

Popular methods of S3Signer

  • <init>
    Constructs a new S3Signer to sign requests based on the AWS credentials, HTTP method and canonical S
  • addSessionCredentials
  • getSignatureDate
  • sanitizeCredentials
  • getTimeOffset

Popular in Java

  • Updating database using SQL prepared statement
  • scheduleAtFixedRate (Timer)
  • getSharedPreferences (Context)
  • onRequestPermissionsResult (Fragment)
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • Collectors (java.util.stream)
  • Reference (javax.naming)
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Top 12 Jupyter Notebook extensions
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