Interface UserId

  • All Superinterfaces:
    java.lang.CharSequence

    public interface UserId
    extends java.lang.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 Summary

      Static Methods 
      Modifier and Type Method Description
      static UserId of​(java.lang.String userIdentifier)
      Creates new user identifier of the given string.
      • Methods inherited from interface java.lang.CharSequence

        charAt, chars, codePoints, length, subSequence, toString
    • Method Detail

      • of

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