Class TelegramAuthentication

java.lang.Object
org.springframework.security.authentication.AbstractAuthenticationToken
org.springframework.security.authentication.UsernamePasswordAuthenticationToken
io.github.yvasyliev.forwarder.telegram.bot.security.authentication.TelegramAuthentication
All Implemented Interfaces:
Serializable, Principal, org.springframework.security.core.Authentication, org.springframework.security.core.CredentialsContainer

public class TelegramAuthentication extends org.springframework.security.authentication.UsernamePasswordAuthenticationToken
Represents an authentication token for a Telegram user.
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.springframework.security.authentication.UsernamePasswordAuthenticationToken

    org.springframework.security.authentication.UsernamePasswordAuthenticationToken.Builder<B>

    Nested classes/interfaces inherited from class org.springframework.security.authentication.AbstractAuthenticationToken

    org.springframework.security.authentication.AbstractAuthenticationToken.AbstractAuthenticationBuilder<B>
  • Constructor Summary

    Constructors
    Constructor
    Description
    TelegramAuthentication(org.telegram.telegrambots.meta.api.objects.User user)
    Constructs a new TelegramAuthentication for the given Telegram user.
  • Method Summary

    Methods inherited from class org.springframework.security.authentication.UsernamePasswordAuthenticationToken

    authenticated, eraseCredentials, getCredentials, getPrincipal, setAuthenticated, toBuilder, unauthenticated

    Methods inherited from class org.springframework.security.authentication.AbstractAuthenticationToken

    equals, getAuthorities, getDetails, getName, hashCode, isAuthenticated, setDetails, toString

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface Principal

    implies
  • Constructor Details

    • TelegramAuthentication

      public TelegramAuthentication(org.telegram.telegrambots.meta.api.objects.User user)
      Constructs a new TelegramAuthentication for the given Telegram user.
      Parameters:
      user - the Telegram user