Class PrincipalInjectionEndpoint


  • @Path("/endp")
    @RequestScoped
    @RolesAllowed("Tester")
    public class PrincipalInjectionEndpoint
    extends Object
    Validate that the injection of a Principal works when using the MP-JWT feature. This validates that the MP-JWT implementation is not interfering with the CDI built in Principal bean. This also validates that the SecurityContext.getUserPrincipal() is also an instance of the JsonWebToken interface.
    • Constructor Detail

      • PrincipalInjectionEndpoint

        public PrincipalInjectionEndpoint()
    • Method Detail

      • verifyInjectedPrincipal

        @GET
        @Path("/verifyInjectedPrincipal")
        @Produces("application/json")
        public jakarta.json.JsonObject verifyInjectedPrincipal()