@Mutable public final class RequestAuthentication extends Object implements org.springframework.security.core.Authentication
| 限定符和类型 | 字段和说明 |
|---|---|
org.springframework.web.context.request.ServletWebRequest |
servletWebRequest |
| 限定符和类型 | 方法和说明 |
|---|---|
Collection<? extends org.springframework.security.core.GrantedAuthority> |
getAuthorities() |
Object |
getCredentials() |
Object |
getDetails() |
String |
getName() |
Object |
getPrincipal() |
org.springframework.web.context.request.ServletWebRequest |
getServletWebRequest() |
boolean |
isAuthenticated() |
static RequestAuthentication |
newInstance(org.springframework.web.context.request.ServletWebRequest servletWebRequest) |
void |
setAuthenticated(boolean isAuthenticated) |
public final org.springframework.web.context.request.ServletWebRequest servletWebRequest
public static RequestAuthentication newInstance(@Nullable org.springframework.web.context.request.ServletWebRequest servletWebRequest)
public org.springframework.web.context.request.ServletWebRequest getServletWebRequest()
public Collection<? extends org.springframework.security.core.GrantedAuthority> getAuthorities()
getAuthorities 在接口中 org.springframework.security.core.Authenticationpublic Object getCredentials()
getCredentials 在接口中 org.springframework.security.core.Authenticationpublic Object getDetails()
getDetails 在接口中 org.springframework.security.core.Authenticationpublic Object getPrincipal()
getPrincipal 在接口中 org.springframework.security.core.Authenticationpublic boolean isAuthenticated()
isAuthenticated 在接口中 org.springframework.security.core.Authenticationpublic void setAuthenticated(boolean isAuthenticated)
throws IllegalArgumentException
setAuthenticated 在接口中 org.springframework.security.core.AuthenticationIllegalArgumentExceptionCopyright © 2022. All rights reserved.