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 booleancanEqual(Object other)booleanequals(Object o)StringgetClientId()StringgetId()Map<String,Map<String,Set<String>>>getRestrictedAuthorities()Map<String,Set<String>>getRestrictions()inthashCode()booleanisImpersonationAllowed()-
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:
getIdin interfaceOAuth2UserDetails
-
getClientId
public String getClientId()
- Specified by:
getClientIdin interfaceOAuth2UserDetails
-
isImpersonationAllowed
public boolean isImpersonationAllowed()
- Specified by:
isImpersonationAllowedin interfaceOAuth2UserDetails
-
getRestrictions
public Map<String,Set<String>> getRestrictions()
- Specified by:
getRestrictionsin interfaceOAuth2UserDetails
-
getRestrictedAuthorities
public Map<String,Map<String,Set<String>>> getRestrictedAuthorities()
- Specified by:
getRestrictedAuthoritiesin interfaceOAuth2UserDetails
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classorg.springframework.security.core.userdetails.User
-
canEqual
protected boolean canEqual(Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classorg.springframework.security.core.userdetails.User
-
-