Class DefaultRequestAuthorizer

java.lang.Object
no.unit.commons.apigateway.authentication.RequestAuthorizer
no.unit.commons.apigateway.authentication.DefaultRequestAuthorizer
All Implemented Interfaces:
com.amazonaws.services.lambda.runtime.RequestHandler<com.amazonaws.services.lambda.runtime.events.APIGatewayCustomAuthorizerEvent,AuthorizerResponse>

public class DefaultRequestAuthorizer extends RequestAuthorizer
A simple Lambda Authorizer. The class can be used by extending it and adding in the default constructor the principal id value.
  • Field Details

    • API_KEY_SECRET_NAME

      public static final String API_KEY_SECRET_NAME
    • API_KEY_SECRET_KEY

      public static final String API_KEY_SECRET_KEY
  • Constructor Details

    • DefaultRequestAuthorizer

      public DefaultRequestAuthorizer(String principalId)
      The constructor that should be inherited by the default constructor of the custom Lambda Authorizer.
      Parameters:
      principalId - A string describing the service tha is using the Authorizer.
    • DefaultRequestAuthorizer

      public DefaultRequestAuthorizer(software.amazon.awssdk.services.secretsmanager.SecretsManagerClient secretsClient, String principalId)
  • Method Details