Class RequestSignerImpl

  • All Implemented Interfaces:
    RequestSigner

    public class RequestSignerImpl
    extends Object
    implements RequestSigner
    Implementation of the RequestSigner interface

    This contains the main code that is used for signing a request

    Class is immutable. @Immutable

    • Constructor Detail

      • RequestSignerImpl

        public RequestSignerImpl​(@Nonnull
                                 KeySupplier<RSAPrivateKey> keySupplier,
                                 @Nonnull
                                 SigningStrategy signingStrategy,
                                 @Nonnull
                                 Supplier<String> keyIdSupplier)
        Construct the RequestSigner with the specified KeySupplier.

        This will be used to get keys for doing the signing.

        Parameters:
        keySupplier - A key supplier that will be used for signing the request
        signingStrategy - The signing strategy to determine what headers to use
        keyIdSupplier - A keyId supplier that will be used for signing the request
      • RequestSignerImpl

        public RequestSignerImpl​(@Nonnull
                                 KeySupplier<RSAPrivateKey> keySupplier,
                                 @Nonnull
                                 RequestSignerImpl.SigningConfiguration signingConfiguration,
                                 @Nonnull
                                 Supplier<String> keyIdSupplier)
        Construct the RequestSigner with the specified KeySupplier.

        This will be used to get keys for doing the signing.

        Parameters:
        keySupplier - A key supplier that will be used for signing the request
        signingConfiguration - The signing configuration to determine what headers to use
        keyIdSupplier - A keyId supplier that will be used for signing the request