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 theprincipalId
field. All other custom values returned by the authorizer are accessible via thegetContextValue
method. Cognito User Pool authorizers populate theclaims
object.
-
-
Constructor Summary
Constructors Constructor Description ApiGatewayAuthorizerContext()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CognitoAuthorizerClaims
getClaims()
Map<String,String>
getContextProperties()
String
getContextValue(String key)
String
getPrincipalId()
void
setClaims(CognitoAuthorizerClaims claims)
void
setContextValue(String key, String value)
void
setPrincipalId(String principalId)
-
-
-
Method Detail
-
getPrincipalId
public String getPrincipalId()
-
setPrincipalId
public void setPrincipalId(String principalId)
-
getClaims
public CognitoAuthorizerClaims getClaims()
-
setClaims
public void setClaims(CognitoAuthorizerClaims claims)
-
-