Class TelegramAnonymousAuthentication

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

public final class TelegramAnonymousAuthentication extends org.springframework.security.authentication.AnonymousAuthenticationToken
Represents an anonymous authentication token for a Telegram user.
See Also:
  • Nested Class Summary

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

    org.springframework.security.authentication.AbstractAuthenticationToken.AbstractAuthenticationBuilder<B>

    Nested classes/interfaces inherited from interface org.springframework.security.core.Authentication

    org.springframework.security.core.Authentication.Builder<B>
  • Method Summary

    Modifier and Type
    Method
    Description
    create(org.telegram.telegrambots.meta.api.objects.User user)
    Creates a new TelegramAnonymousAuthentication for the given Telegram user.

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

    equals, getCredentials, getKeyHash, getPrincipal, hashCode

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

    eraseCredentials, getAuthorities, getDetails, getName, isAuthenticated, setAuthenticated, setDetails, toString

    Methods inherited from class Object

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

    Methods inherited from interface org.springframework.security.core.Authentication

    toBuilder

    Methods inherited from interface Principal

    implies