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
      Modify the provided client configuration.
      Specified by:
      configureClient in interface SdkPlugin