Interface PrincipalMapper


public interface PrincipalMapper
A PrincipalMapper is an object that maps from a collection of generic Principals or a Subject to well known entities in Jakarta EE.

The following target entities are supported:

  • The caller principal - a java.security.Principal containing the name of the current authenticated user.
  • The role - a java.lang.String representing the logical application role associated with the caller principal.

A PrincipalMapper is intended to be used by a Policy, but should work outside a Policy (for instance, during request processing in a Servlet container).

NOTE: DRAFT API. SUBJECT TO CHANGE