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, withUsername
public 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 OAuth2UserDetails
public String getClientId()
getClientId
in interface OAuth2UserDetails
public boolean isImpersonationAllowed()
isImpersonationAllowed
in interface OAuth2UserDetails
public Map<String,Set<String>> getRestrictions()
getRestrictions
in interface OAuth2UserDetails
PrivilegeSummary#getRestrictions().
public Map<String,Map<String,Set<String>>> getRestrictedAuthorities()
getRestrictedAuthorities
in interface OAuth2UserDetails
PrivilegeSummary#getRestrictedAuthorities().
public boolean equals(Object o)
equals
in class org.springframework.security.core.userdetails.User
protected boolean canEqual(Object other)
public int hashCode()
hashCode
in class org.springframework.security.core.userdetails.User
Copyright © 2021. All rights reserved.