Class DefaultOAuth2UserDetails
- java.lang.Object
-
- org.springframework.security.core.userdetails.User
-
- com.broadleafcommerce.auth.user.domain.DefaultOAuth2UserDetails
-
- All Implemented Interfaces:
OAuth2UserDetails
,Serializable
,org.springframework.security.core.CredentialsContainer
,org.springframework.security.core.userdetails.UserDetails
public class DefaultOAuth2UserDetails extends org.springframework.security.core.userdetails.User implements OAuth2UserDetails
- Author:
- Nick Crum (ncrum)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor 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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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()
-
Methods inherited from class org.springframework.security.core.userdetails.User
builder, eraseCredentials, getAuthorities, getPassword, getUsername, isAccountNonExpired, isAccountNonLocked, isCredentialsNonExpired, isEnabled, toString, withDefaultPasswordEncoder, withUserDetails, withUsername
-
-
-
-
Constructor Detail
-
DefaultOAuth2UserDetails
public DefaultOAuth2UserDetails(String id, String clientId, String username, String password, Collection<? extends org.springframework.security.core.GrantedAuthority> authorities)
-
DefaultOAuth2UserDetails
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)
-
DefaultOAuth2UserDetails
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)
-
DefaultOAuth2UserDetails
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)
-
-
Method Detail
-
getId
public String getId()
- Specified by:
getId
in interfaceOAuth2UserDetails
-
getClientId
public String getClientId()
- Specified by:
getClientId
in interfaceOAuth2UserDetails
-
isImpersonationAllowed
public boolean isImpersonationAllowed()
- Specified by:
isImpersonationAllowed
in interfaceOAuth2UserDetails
-
getRestrictions
public Map<String,Set<String>> getRestrictions()
- Specified by:
getRestrictions
in interfaceOAuth2UserDetails
-
getRestrictedAuthorities
public Map<String,Map<String,Set<String>>> getRestrictedAuthorities()
- Specified by:
getRestrictedAuthorities
in interfaceOAuth2UserDetails
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classorg.springframework.security.core.userdetails.User
-
canEqual
protected boolean canEqual(Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classorg.springframework.security.core.userdetails.User
-
-