public class DefaultOAuth2UserDetails extends org.springframework.security.core.userdetails.User implements OAuth2UserDetails
| Constructor and Description |
|---|
DefaultOAuth2UserDetails(String id,
String clientId,
String username,
String password,
boolean enabled,
boolean accountNonExpired,
boolean credentialsNonExpired,
boolean accountNonLocked,
boolean impersonationAllowed,
Collection<? extends org.springframework.security.core.GrantedAuthority> authorities) |
DefaultOAuth2UserDetails(String id,
String clientId,
String username,
String password,
boolean enabled,
boolean accountNonExpired,
boolean credentialsNonExpired,
boolean accountNonLocked,
boolean impersonationAllowed,
Collection<? extends org.springframework.security.core.GrantedAuthority> authorities,
Map<String,Set<String>> restrictions,
Map<String,Map<String,Set<String>>> restrictedAuthorities) |
DefaultOAuth2UserDetails(String id,
String clientId,
String username,
String password,
Collection<? extends org.springframework.security.core.GrantedAuthority> authorities) |
DefaultOAuth2UserDetails(String id,
String clientId,
String username,
String password,
Collection<? extends org.springframework.security.core.GrantedAuthority> authorities,
Map<String,Set<String>> restrictions,
Map<String,Map<String,Set<String>>> restrictedAuthorities) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
String |
getClientId() |
String |
getId() |
Map<String,Map<String,Set<String>>> |
getRestrictedAuthorities() |
Map<String,Set<String>> |
getRestrictions() |
int |
hashCode() |
boolean |
isImpersonationAllowed() |
builder, eraseCredentials, getAuthorities, getPassword, getUsername, isAccountNonExpired, isAccountNonLocked, isCredentialsNonExpired, isEnabled, toString, withDefaultPasswordEncoder, withUserDetails, withUsernamepublic DefaultOAuth2UserDetails(String id, String clientId, String username, String password, Collection<? extends org.springframework.security.core.GrantedAuthority> authorities)
public DefaultOAuth2UserDetails(String id, String clientId, String username, String password, Collection<? extends org.springframework.security.core.GrantedAuthority> authorities, Map<String,Set<String>> restrictions, Map<String,Map<String,Set<String>>> restrictedAuthorities)
public DefaultOAuth2UserDetails(String id, String clientId, String username, String password, boolean enabled, boolean accountNonExpired, boolean credentialsNonExpired, boolean accountNonLocked, boolean impersonationAllowed, Collection<? extends org.springframework.security.core.GrantedAuthority> authorities)
public DefaultOAuth2UserDetails(String id, String clientId, String username, String password, boolean enabled, boolean accountNonExpired, boolean credentialsNonExpired, boolean accountNonLocked, boolean impersonationAllowed, Collection<? extends org.springframework.security.core.GrantedAuthority> authorities, Map<String,Set<String>> restrictions, Map<String,Map<String,Set<String>>> restrictedAuthorities)
public String getId()
getId in interface OAuth2UserDetailspublic String getClientId()
getClientId in interface OAuth2UserDetailspublic boolean isImpersonationAllowed()
isImpersonationAllowed in interface OAuth2UserDetailspublic Map<String,Set<String>> getRestrictions()
getRestrictions in interface OAuth2UserDetailsPrivilegeSummary#getRestrictions().public Map<String,Map<String,Set<String>>> getRestrictedAuthorities()
getRestrictedAuthorities in interface OAuth2UserDetailsPrivilegeSummary#getRestrictedAuthorities().public boolean equals(Object o)
equals in class org.springframework.security.core.userdetails.Userprotected boolean canEqual(Object other)
public int hashCode()
hashCode in class org.springframework.security.core.userdetails.UserCopyright © 2021. All rights reserved.