io.quarkus.amazon.lambda.http.CustomPrincipal Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of quarkus-amazon-lambda-http Show documentation
Show all versions of quarkus-amazon-lambda-http Show documentation
Allow applications written for a servlet container to run in AWS Lambda
package io.quarkus.amazon.lambda.http;
import java.security.Principal;
import java.util.Map;
/**
* Represents a custom principal sent by API Gateway i.e. a Lambda authorizer
*
* Will only be allocated if requestContext.authorizer.lambda.principalId is set
* in the http event sent by API Gateway
*
*/
public class CustomPrincipal implements Principal {
private String name;
private Map claims;
public CustomPrincipal(String name, Map claims) {
this.claims = claims;
this.name = name;
}
@Override
public String getName() {
return name;
}
public Map getClaims() {
return claims;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy