Use exact type name in doc sample

Issue: SPR-15863
This commit is contained in:
Rossen Stoyanchev
2017-08-15 14:44:22 +02:00
parent 3f4ec37262
commit 181f002ddf

View File

@@ -1758,7 +1758,7 @@ user and associate it with subsequent STOMP messages on the same session:
MessageHeaderAccessor.getAccessor(message, StompHeaderAccessor.class);
if (StompCommand.CONNECT.equals(accessor.getCommand())) {
Principal user = ... ; // access authentication header(s)
Authentication user = ... ; // access authentication header(s)
accessor.setUser(user);
}