public class TokenAuthentication extends Object implements org.springframework.security.core.Authentication
| Constructor and Description |
|---|
TokenAuthentication() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Collection<? extends org.springframework.security.core.GrantedAuthority> |
getAuthorities() |
Object |
getCredentials() |
Object |
getDetails() |
String |
getName() |
Object |
getPrincipal() |
String |
getToken() |
int |
hashCode() |
boolean |
isAuthenticated() |
void |
setAuthenticated(boolean isAuthenticated) |
void |
setAuthorities(Collection<? extends org.springframework.security.core.GrantedAuthority> grantAuthorities) |
void |
setDetails(Object userDetails) |
void |
setName(String username) |
void |
setPrincipal(Object principal) |
void |
setToken(String token) |
public Object getCredentials()
getCredentials in interface org.springframework.security.core.Authenticationpublic Object getPrincipal()
getPrincipal in interface org.springframework.security.core.Authenticationpublic String getToken()
public void setToken(String token)
public void setPrincipal(Object principal)
public boolean equals(Object obj)
public int hashCode()
public void setName(String username)
public Collection<? extends org.springframework.security.core.GrantedAuthority> getAuthorities()
getAuthorities in interface org.springframework.security.core.Authenticationpublic Object getDetails()
getDetails in interface org.springframework.security.core.Authenticationpublic void setDetails(Object userDetails)
public boolean isAuthenticated()
isAuthenticated in interface org.springframework.security.core.Authenticationpublic void setAuthenticated(boolean isAuthenticated)
setAuthenticated in interface org.springframework.security.core.Authenticationpublic void setAuthorities(Collection<? extends org.springframework.security.core.GrantedAuthority> grantAuthorities)
Copyright © 2019. All rights reserved.