Class WeChatAuthenticationToken
- java.lang.Object
-
- org.springframework.security.authentication.AbstractAuthenticationToken
-
- org.oxerr.spring.security.wechat.authentication.WeChatAuthenticationToken
-
- All Implemented Interfaces:
Serializable
,Principal
,org.springframework.security.core.Authentication
,org.springframework.security.core.CredentialsContainer
public class WeChatAuthenticationToken extends org.springframework.security.authentication.AbstractAuthenticationToken
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private String
code
private static long
serialVersionUID
private org.springframework.security.core.userdetails.UserDetails
userDetails
-
Constructor Summary
Constructors Constructor Description WeChatAuthenticationToken(String code)
WeChatAuthenticationToken(org.springframework.security.core.userdetails.UserDetails userDetails)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getCredentials()
Object
getPrincipal()
-
Methods inherited from class org.springframework.security.authentication.AbstractAuthenticationToken
equals, eraseCredentials, getAuthorities, getDetails, getName, hashCode, isAuthenticated, setAuthenticated, setDetails, toString
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
userDetails
private final org.springframework.security.core.userdetails.UserDetails userDetails
-
code
private String code
-
-
Constructor Detail
-
WeChatAuthenticationToken
public WeChatAuthenticationToken(String code)
-
WeChatAuthenticationToken
public WeChatAuthenticationToken(org.springframework.security.core.userdetails.UserDetails userDetails)
-
-