Interface UserIdentity

    • Field Detail

      • UNAUTHENTICATED_IDENTITY

        static final UserIdentity UNAUTHENTICATED_IDENTITY
    • Method Detail

      • getSubject

        javax.security.auth.Subject getSubject()
        Returns:
        The user subject
      • getUserPrincipal

        java.security.Principal getUserPrincipal()
        Returns:
        The user principal
      • isUserInRole

        boolean isUserInRole​(java.lang.String role,
                             UserIdentity.Scope scope)
        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.
        Parameters:
        role - A role name.
        scope - the scope
        Returns:
        True if the user can act in that role.