Class PrincipalInjectionEndpoint
- java.lang.Object
-
- org.eclipse.microprofile.jwt.tck.container.jaxrs.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 Summary
Constructors Constructor Description PrincipalInjectionEndpoint()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description jakarta.json.JsonObject
verifyInjectedPrincipal()
-