Class ApiGatewayAuthorizerContext
- java.lang.Object
-
- io.quarkus.amazon.lambda.http.model.ApiGatewayAuthorizerContext
-
public class ApiGatewayAuthorizerContext extends Object
Context object used for custom authorizers and Cognito User Pool authorizers. Custom authorizers populate theprincipalIdfield. All other custom values returned by the authorizer are accessible via thegetContextValuemethod. Cognito User Pool authorizers populate theclaimsobject.
-
-
Constructor Summary
Constructors Constructor Description ApiGatewayAuthorizerContext()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CognitoAuthorizerClaimsgetClaims()Map<String,String>getContextProperties()StringgetContextValue(String key)StringgetPrincipalId()voidsetClaims(CognitoAuthorizerClaims claims)voidsetContextValue(String key, String value)voidsetPrincipalId(String principalId)
-
-
-
Method Detail
-
getPrincipalId
public String getPrincipalId()
-
setPrincipalId
public void setPrincipalId(String principalId)
-
getClaims
public CognitoAuthorizerClaims getClaims()
-
setClaims
public void setClaims(CognitoAuthorizerClaims claims)
-
-