All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.quarkus.amazon.lambda.http.CustomPrincipal Maven / Gradle / Ivy

There is a newer version: 3.17.5
Show newest version
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