Interface UserId

  • All Superinterfaces:
    CharSequence

    public interface UserId
    extends CharSequence
    An opaque identifier for the “user” that initiated the request.

    This type is typically used in logging, notably by RequestLogger. Authentication systems should add a user identifier to the request registry.

    • Method Detail

      • of

        static UserId of​(String userIdentifier)
        Creates new user identifier of the given string.
        Parameters:
        userIdentifier - the user identifier
        Returns:
        a user identifier object