Class DefaultUserIdentity

  • All Implemented Interfaces:
    UserIdentity

    @Deprecated(since="2021-05-27")
    public class DefaultUserIdentity
    extends Object
    implements UserIdentity
    Deprecated.
    The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.
    The default implementation of UserIdentity.
    • Constructor Detail

      • DefaultUserIdentity

        public DefaultUserIdentity​(Subject subject,
                                   Principal userPrincipal,
                                   String[] roles)
        Deprecated.
    • Method Detail

      • isUserInRole

        public boolean isUserInRole​(String role,
                                    UserIdentity.Scope scope)
        Deprecated.
        Description copied from interface: UserIdentity
        Check if the user is in a role. This call is used to satisfy authorization calls from container code which will be using translated role names.
        Specified by:
        isUserInRole in interface UserIdentity
        Parameters:
        role - A role name.
        scope - the scope
        Returns:
        True if the user can act in that role.