Package com.oracle.bmc.http.signing
Class DefaultRequestSigner
- java.lang.Object
-
- com.oracle.bmc.http.signing.DefaultRequestSigner
-
public class DefaultRequestSigner extends Object
Class that exposes a way to create aRequestSigner
for use with OCI.The returned signers implement signing strategies outlined by the signing guidelines.
This is only exposed so clients can write REST calls directly against OCI without using the SDK provided clients, but this class may change without notice -- users are encouraged to use the SDK provided clients.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RequestSigner
createRequestSigner(BasicAuthenticationDetailsProvider authProvider)
Creates a new RequestSigner using theSigningStrategy.STANDARD
.static RequestSigner
createRequestSigner(BasicAuthenticationDetailsProvider authProvider, SigningStrategy signingStrategy)
Creates a new RequestSigner using the given signing strategy.
-
-
-
Method Detail
-
createRequestSigner
public static RequestSigner createRequestSigner(BasicAuthenticationDetailsProvider authProvider)
Creates a new RequestSigner using theSigningStrategy.STANDARD
.- Parameters:
authProvider
- The auth details provider to use.- Returns:
- A new signer instance.
-
createRequestSigner
public static RequestSigner createRequestSigner(BasicAuthenticationDetailsProvider authProvider, SigningStrategy signingStrategy)
Creates a new RequestSigner using the given signing strategy.- Parameters:
authProvider
- The auth details provider to use.signingStrategy
- The strategy to use.- Returns:
- A new signer instance.
-
-