Package io.r03el.tma.security.token
Class TelegramAuthenticationToken
java.lang.Object
org.springframework.security.authentication.AbstractAuthenticationToken
io.r03el.tma.security.token.TelegramAuthenticationToken
- All Implemented Interfaces:
Serializable,Principal,org.springframework.security.core.Authentication,org.springframework.security.core.CredentialsContainer
public class TelegramAuthenticationToken
extends org.springframework.security.authentication.AbstractAuthenticationToken
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionTelegramAuthenticationToken(TelegramUserDetails principal, Collection<? extends org.springframework.security.core.GrantedAuthority> authorities) TelegramAuthenticationToken(String initData) Constructor for unauthenticated state (used by the filter). -
Method Summary
Methods inherited from class org.springframework.security.authentication.AbstractAuthenticationToken
equals, getAuthorities, getDetails, getName, hashCode, isAuthenticated, setDetails, toString
-
Constructor Details
-
TelegramAuthenticationToken
Constructor for unauthenticated state (used by the filter).- Parameters:
initData- The raw 'initData' string.
-
TelegramAuthenticationToken
public TelegramAuthenticationToken(TelegramUserDetails principal, Collection<? extends org.springframework.security.core.GrantedAuthority> authorities)
-
-
Method Details
-
getCredentials
-
getPrincipal
-
setAuthenticated
- Specified by:
setAuthenticatedin interfaceorg.springframework.security.core.Authentication- Overrides:
setAuthenticatedin classorg.springframework.security.authentication.AbstractAuthenticationToken- Throws:
IllegalArgumentException
-
eraseCredentials
public void eraseCredentials()- Specified by:
eraseCredentialsin interfaceorg.springframework.security.core.CredentialsContainer- Overrides:
eraseCredentialsin classorg.springframework.security.authentication.AbstractAuthenticationToken
-