Class Aws4SignerForAuthorizationHeader


  • public class Aws4SignerForAuthorizationHeader
    extends Aws4SignerBase
    AWS4 signer sign requests to Amazon S3 using an 'Authorization' header.
    • Constructor Detail

      • Aws4SignerForAuthorizationHeader

        @Inject
        public Aws4SignerForAuthorizationHeader​(SignatureWire signatureWire,
                                                @Named("jclouds.s3.virtual-host-buckets")
                                                boolean isVhostStyle,
                                                @Named("jclouds.aws.header.tag")
                                                String headerTag,
                                                com.google.common.base.Supplier<Credentials> creds,
                                                com.google.common.base.Supplier<Date> timestampProvider,
                                                Aws4SignerBase.ServiceAndRegion serviceAndRegion,
                                                Crypto crypto)
    • Method Detail

      • getEmptyPayloadContentHash

        protected String getEmptyPayloadContentHash()
        The hash returns the following value: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
      • calculatePayloadContentHash

        protected String calculatePayloadContentHash​(Payload payload)
        in this time, payload ContentMetadata provided content hash md5, but aws required sha256.