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
ConstructorsConstructorDescriptionTelegramAuthentication(org.telegram.telegrambots.meta.api.objects.User user) Constructs a newTelegramAuthenticationfor the given Telegram user. -
Method Summary
Methods inherited from class org.springframework.security.authentication.UsernamePasswordAuthenticationToken
authenticated, eraseCredentials, getCredentials, getPrincipal, setAuthenticated, toBuilder, unauthenticatedMethods inherited from class org.springframework.security.authentication.AbstractAuthenticationToken
equals, getAuthorities, getDetails, getName, hashCode, isAuthenticated, setDetails, toString
-
Constructor Details
-
TelegramAuthentication
public TelegramAuthentication(org.telegram.telegrambots.meta.api.objects.User user) Constructs a newTelegramAuthenticationfor the given Telegram user.- Parameters:
user- the Telegram user
-