Class DpopAuthPlugin

java.lang.Object
software.amazon.awssdk.services.signin.internal.DpopAuthPlugin
All Implemented Interfaces:
AutoCloseable, SdkPlugin, SdkAutoCloseable

@SdkInternalApi public class DpopAuthPlugin extends Object implements SdkPlugin
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 Details

    • create

      public static DpopAuthPlugin create(String dpopKeyPem)
      Create an instance of the DpopAuthPlugin using the dpopKey from the LoginAccessToken
      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

      public void configureClient(SdkServiceClientConfiguration.Builder config)
      Description copied from interface: SdkPlugin
      Modifies 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:
      configureClient in interface SdkPlugin
      Parameters:
      config - the configuration builder to modify