public class RequestSigningFilter extends AuthnClientFilter
Filter that adds authentication and User-Agent headers to a request.
SIGNING_STRATEGY_PROPERTY_NAME
Constructor and Description |
---|
RequestSigningFilter(RequestSigner requestSigner)
Create a new RequestSigningFilter instance
|
RequestSigningFilter(RequestSigner requestSigner,
Map<SigningStrategy,RequestSigner> requestSigners)
Create a new RequestSigningFilter instance
|
Modifier and Type | Method and Description |
---|---|
static RequestSigningFilter |
fromAuthProvider(BasicAuthenticationDetailsProvider authenticationDetailsProvider)
Create a new RequestSigningFilter instance from an existing authentication details provider
|
static RequestSigningFilter |
fromConfigFile(String configurationFilePath,
String profile)
Create a new RequestSigningFilter instance from a config file
|
void |
intercept(com.oracle.bmc.http.client.HttpRequest request) |
public RequestSigningFilter(@Nonnull RequestSigner requestSigner, @Nonnull Map<SigningStrategy,RequestSigner> requestSigners)
Create a new RequestSigningFilter instance
requestSigner
- the request signer instancerequestSigners
- the strategies used to sign requests, per signing strategypublic RequestSigningFilter(@Nonnull RequestSigner requestSigner)
Create a new RequestSigningFilter instance
requestSigner
- the request signer instancepublic static RequestSigningFilter fromAuthProvider(@Nonnull BasicAuthenticationDetailsProvider authenticationDetailsProvider)
Create a new RequestSigningFilter instance from an existing authentication details provider
authenticationDetailsProvider
- the authentication details provider to usepublic static RequestSigningFilter fromConfigFile(@Nonnull String configurationFilePath, @Nullable String profile) throws IOException
Create a new RequestSigningFilter instance from a config file
configurationFilePath
- the path of the config fileprofile
- the profile to useIOException
- if the config file could not be readpublic void intercept(com.oracle.bmc.http.client.HttpRequest request)
intercept
in interface com.oracle.bmc.http.client.RequestInterceptor
intercept
in class AuthnClientFilter
Copyright © 2016–2024. All rights reserved.