public final class StringToSignProducer extends Object
Modifier and Type | Method and Description |
---|---|
static String |
buildCanonicalRequest(String schema,
String method,
String uri,
String signedHeaders,
Map<String,String> headers,
Map<String,String> queryParams,
boolean unsignedPayload)
Convert request info to a format string.
|
static String |
createSignatureBase(SignatureInfo signatureInfo,
javax.ws.rs.container.ContainerRequestContext context)
Convert signature info to strToSign.
|
static String |
createSignatureBase(SignatureInfo signatureInfo,
io.netty.handler.codec.http.HttpRequest httpRequest)
Convert signature info to strToSign.
|
static String |
createSignatureBase(SignatureInfo signatureInfo,
javax.servlet.http.HttpServletRequest request)
Convert signature info to strToSign.
|
static String |
createSignatureBase(SignatureInfo signatureInfo,
String scheme,
String method,
String uri,
Map<String,String> headers,
Map<String,String> queryParams)
Convert request info to strToSign.
|
static String |
hash(String payload)
Compute a hash for provided string.
|
public static String createSignatureBase(SignatureInfo signatureInfo, javax.ws.rs.container.ContainerRequestContext context) throws Exception
signatureInfo
- context
- Exception
public static String createSignatureBase(SignatureInfo signatureInfo, javax.servlet.http.HttpServletRequest request) throws Exception
signatureInfo
- request
- Exception
public static String createSignatureBase(SignatureInfo signatureInfo, io.netty.handler.codec.http.HttpRequest httpRequest) throws Exception
signatureInfo
- httpRequest
- Exception
public static String createSignatureBase(SignatureInfo signatureInfo, String scheme, String method, String uri, Map<String,String> headers, Map<String,String> queryParams) throws Exception
signatureInfo
- scheme
- method
- uri
- headers
- queryParams
- Exception
public static String hash(String payload) throws NoSuchAlgorithmException
payload
- NoSuchAlgorithmException
public static String buildCanonicalRequest(String schema, String method, String uri, String signedHeaders, Map<String,String> headers, Map<String,String> queryParams, boolean unsignedPayload) throws S3Exception
schema
- request schemamethod
- request methoduri
- request urisignedHeaders
- signed headersheaders
- request headersqueryParams
- request paramsunsignedPayload
- whether or not the payload is unsignedS3Exception
Copyright © 2023. All Rights Reserved.