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.Authentication
public Collection<? extends org.springframework.security.core.GrantedAuthority> getAuthorities()
getAuthorities
in interface org.springframework.security.core.Authentication
public Object getCredentials()
getCredentials
in interface org.springframework.security.core.Authentication
public Object getDetails()
getDetails
in interface org.springframework.security.core.Authentication
public boolean isAuthenticated()
isAuthenticated
in interface org.springframework.security.core.Authentication
public void setAuthenticated(boolean isAuthenticated) throws IllegalArgumentException
setAuthenticated
in interface org.springframework.security.core.Authentication
IllegalArgumentException
Copyright © 2019 The Holon Platform. All rights reserved.