Class CognitoPrincipal

  • All Implemented Interfaces:
    Principal

    public class CognitoPrincipal
    extends Object
    implements Principal
    Represents a Cognito JWT used to authenticate request Will only be allocated if requestContext.authorizer.jwt.claims.cognito:username is set in the http event sent by API Gateway
    • Constructor Detail

      • CognitoPrincipal

        public CognitoPrincipal​(com.amazonaws.services.lambda.runtime.events.APIGatewayV2HTTPEvent.RequestContext.Authorizer.JWT jwt)
    • Method Detail

      • getClaims

        public com.amazonaws.services.lambda.runtime.events.APIGatewayV2HTTPEvent.RequestContext.Authorizer.JWT getClaims()