Package ratpack.handling
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 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
-
-