public class SpringSecurityAuthenticationAdapter extends Object implements org.springframework.security.core.Authentication
Authentication as a Spring Security authentication.| Constructor and Description |
|---|
SpringSecurityAuthenticationAdapter(Authentication authentication)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Collection<? extends org.springframework.security.core.GrantedAuthority> |
getAuthorities() |
Object |
getCredentials() |
Object |
getDetails() |
String |
getName() |
Object |
getPrincipal() |
boolean |
isAuthenticated() |
void |
setAuthenticated(boolean isAuthenticated) |
String |
toString() |
public SpringSecurityAuthenticationAdapter(Authentication authentication)
authentication - The concrete Authentication (not null)public Object getPrincipal()
getPrincipal in interface org.springframework.security.core.Authenticationpublic Collection<? extends org.springframework.security.core.GrantedAuthority> getAuthorities()
getAuthorities in interface org.springframework.security.core.Authenticationpublic Object getCredentials()
getCredentials in interface org.springframework.security.core.Authenticationpublic Object getDetails()
getDetails in interface org.springframework.security.core.Authenticationpublic boolean isAuthenticated()
isAuthenticated in interface org.springframework.security.core.Authenticationpublic void setAuthenticated(boolean isAuthenticated)
throws IllegalArgumentException
setAuthenticated in interface org.springframework.security.core.AuthenticationIllegalArgumentExceptionCopyright © 2019 The Holon Platform. All rights reserved.