Top Description Methods
com.oracle.bmc.http.signing

public Interface RequestSigner

Known Direct Implementers
com.oracle.bmc.http.signing.internal.RequestSignerImpl
Imports
java.net.URI, java.util.List, .Map, jakarta.annotation.Nonnull, .Nullable

Main entry point for signing a request

Method Summary

Modifier and TypeMethod and Description
public Map<String, String>

Returns:

a map that contains the signature Authorization header, and any headers that were signed when generating the signature. You MUST include the exact values of the returned headers when making requests.
signRequest
(URI
the request uri
uri
,
String
the request method
httpMethod
,
Map<String, List<String>>
the request headers
headers
,
Object
the request body (if this is a PUT or POST method)
body
)

Sign a request.

Method Detail

signRequestback to summary
public Map<String, String> signRequest(URI uri, String httpMethod, Map<String, List<String>> headers, Object body)

Sign a request.

Parameters
uri:URI

the request uri

httpMethod:String

the request method

headers:Map<String, List<String>>

the request headers

body:Object

the request body (if this is a PUT or POST method)

Returns:Map<String, String>

a map that contains the signature Authorization header, and any headers that were signed when generating the signature. You MUST include the exact values of the returned headers when making requests.

Annotations
@Nonnull