Package org.eclipse.jetty.ee8.nested
Interface UserIdentityScope
- All Known Implementing Classes:
ServletHolder
public interface UserIdentityScope
User object that encapsulates user identity and operations such as run-as-role actions,
checking isUserInRole and getUserPrincipal.
Implementations of UserIdentityScope should be immutable so that they may be cached by Authenticators and LoginServices.
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
deRefRole
(UserIdentityScope scope, String role) getName()
-
Method Details
-
getContextHandler
ContextHandler getContextHandler()- Returns:
- The context handler that the identity is being considered within
-
getContextPath
String getContextPath()- Returns:
- The context path that the identity is being considered within
-
getName
String getName()- Returns:
- The name of the identity context. Typically this is the servlet name.
-
getRoleRefMap
- Returns:
- A map of role reference names that converts from names used by application code to names used by the context deployment.
-
deRefRole
-