Class DpopAuthPlugin
java.lang.Object
software.amazon.awssdk.services.signin.internal.DpopAuthPlugin
- All Implemented Interfaces:
AutoCloseable,SdkPlugin,SdkAutoCloseable
An SDK plugin that will use DPoP auth for requests by adding the
DpopAuthScheme and overriding the
AuthSchemeProvider with a custom provider that will always return Dpop.
The auth scheme uses the DpopSigner to add the required DPoP header to the request.-
Method Summary
Modifier and TypeMethodDescriptionvoidModifies the provided client configuration.static DpopAuthPluginCreate an instance of the DpopAuthPlugin using the dpopKey from theLoginAccessToken
-
Method Details
-
create
Create an instance of the DpopAuthPlugin using the dpopKey from theLoginAccessToken- Parameters:
dpopKeyPem- - PEM file contents containing the base64-encoding of the ECPrivateKey format defined by RFC5915: Elliptic Curve Private Key Structure. It MUST include the public key coordinates.- Returns:
- dpopAuthPlugin
-
configureClient
Description copied from interface:SdkPluginModifies the provided client configuration.This method is invoked by the SDK to allow the plugin to customize the client configuration. Implementations can modify any aspect of the configuration exposed through the builder, including override configuration, endpoints, and authentication schemes.
- Specified by:
configureClientin interfaceSdkPlugin- Parameters:
config- the configuration builder to modify
-