spring-framework / org.springframework.messaging.simp.user / DestinationUserNameProvider

DestinationUserNameProvider

interface DestinationUserNameProvider

A java.security.Principal can also implement this contract when getName() isn't globally unique and therefore not suited for use with "user" destinations.

Author
Rossen Stoyanchev

Since
4.0.1

See Also
org.springframework.messaging.simp.user.UserDestinationResolver

Functions

getDestinationUserName

abstract fun getDestinationUserName(): String

Return a globally unique user name for use with "user" destinations.