public class OneClickLoginAuthenticationToken
extends org.springframework.security.authentication.AbstractAuthenticationToken
| 构造器和说明 |
|---|
OneClickLoginAuthenticationToken(Object principal,
Map<String,String> otherParamMap,
Collection<? extends org.springframework.security.core.GrantedAuthority> authorities)
This constructor should only be used by
|
OneClickLoginAuthenticationToken(String mobile,
Map<String,String> otherParamMap)
This constructor can be safely used by any codes that wishes to create a
AbstractAuthenticationToken.isAuthenticated()
will return |
OneClickLoginAuthenticationToken(String mobile,
Map<String,String> otherParamMap,
org.springframework.web.context.request.ServletWebRequest request) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
eraseCredentials() |
Object |
getCredentials() |
Map<String,String> |
getOtherParamMap() |
Object |
getPrincipal() |
org.springframework.web.context.request.ServletWebRequest |
getRequest() |
void |
setAuthenticated(boolean isAuthenticated) |
public OneClickLoginAuthenticationToken(@NonNull
String mobile,
@Nullable
Map<String,String> otherParamMap)
AbstractAuthenticationToken.isAuthenticated()
will return public OneClickLoginAuthenticationToken(@NonNull
String mobile,
@Nullable
Map<String,String> otherParamMap,
@Nullable
org.springframework.web.context.request.ServletWebRequest request)
public OneClickLoginAuthenticationToken(@NonNull
Object principal,
@Nullable
Map<String,String> otherParamMap,
@NonNull
Collection<? extends org.springframework.security.core.GrantedAuthority> authorities)
AbstractAuthenticationToken.isAuthenticated() = principal - principalotherParamMap - other param map, map(paramName, paramValue)authorities - authoritiespublic Object getCredentials()
public Object getPrincipal()
public void setAuthenticated(boolean isAuthenticated)
throws IllegalArgumentException
setAuthenticated 在接口中 org.springframework.security.core.AuthenticationsetAuthenticated 在类中 org.springframework.security.authentication.AbstractAuthenticationTokenIllegalArgumentExceptionpublic void eraseCredentials()
eraseCredentials 在接口中 org.springframework.security.core.CredentialsContainereraseCredentials 在类中 org.springframework.security.authentication.AbstractAuthenticationToken@NonNull public org.springframework.web.context.request.ServletWebRequest getRequest()
Copyright © 2021. All rights reserved.