java.lang.Object
org.springframework.security.authentication.AbstractAuthenticationToken
com.finconsgroup.itserr.marketplace.usercommunication.dm.security.WebSocketAuthentication
All Implemented Interfaces:
Serializable, Principal, org.springframework.security.core.Authentication, org.springframework.security.core.CredentialsContainer

public class WebSocketAuthentication extends org.springframework.security.authentication.AbstractAuthenticationToken
The authentication object for Web Socket that represents the currently logged-in user.
See Also:
  • Constructor Details

    • WebSocketAuthentication

      public WebSocketAuthentication(@NonNull WebSocketUser user, Collection<? extends org.springframework.security.core.GrantedAuthority> authorities)
  • Method Details

    • getName

      public String getName()
      Specified by:
      getName in interface Principal
      Overrides:
      getName in class org.springframework.security.authentication.AbstractAuthenticationToken
    • getCredentials

      public Object getCredentials()
    • getPrincipal

      @NonNull public WebSocketUser getPrincipal()