public interface AuthenticationToUserDetailsConverter
Authentication to UserDetails converter.| 限定符和类型 | 方法和说明 |
|---|---|
org.springframework.security.core.userdetails.UserDetails |
convert(org.springframework.security.oauth2.server.resource.authentication.AbstractOAuth2TokenAuthenticationToken<org.springframework.security.oauth2.core.OAuth2AccessToken> source)
Convert the source object of type
AbstractOAuth2TokenAuthenticationToken<OAuth2AccessToken> to target type UserDetails. |
@NonNull
org.springframework.security.core.userdetails.UserDetails convert(@NonNull
org.springframework.security.oauth2.server.resource.authentication.AbstractOAuth2TokenAuthenticationToken<org.springframework.security.oauth2.core.OAuth2AccessToken> source)
AbstractOAuth2TokenAuthenticationToken<OAuth2AccessToken> to target type UserDetails.source - the source object to convert, which must be an instance of AbstractOAuth2TokenAuthenticationToken<OAuth2AccessToken> (never null)UserDetails (never null)IllegalArgumentException - if the source cannot be converted to the desired target typeCopyright © 2021. All rights reserved.