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:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.security.core.userdetails.User
org.springframework.security.core.userdetails.User.UserBuilder
-
Constructor Summary
ConstructorDescriptionDefaultOAuth2UserDetails
(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
Methods inherited from class org.springframework.security.core.userdetails.User
builder, eraseCredentials, getAuthorities, getPassword, getUsername, isAccountNonExpired, isAccountNonLocked, isCredentialsNonExpired, isEnabled, toString, withDefaultPasswordEncoder, withUserDetails, withUsername
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.springframework.security.core.userdetails.UserDetails
getAuthorities, getPassword, getUsername, isAccountNonExpired, isAccountNonLocked, isCredentialsNonExpired, isEnabled
-
Constructor Details
-
DefaultOAuth2UserDetails
public DefaultOAuth2UserDetails(String id, String clientId, String username, String password, Collection<? extends org.springframework.security.core.GrantedAuthority> authorities) -
DefaultOAuth2UserDetails
-
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 Details
-
getId
- Specified by:
getId
in interfaceOAuth2UserDetails
-
getClientId
- Specified by:
getClientId
in interfaceOAuth2UserDetails
-
isImpersonationAllowed
public boolean isImpersonationAllowed()- Specified by:
isImpersonationAllowed
in interfaceOAuth2UserDetails
-
getRestrictions
- Specified by:
getRestrictions
in interfaceOAuth2UserDetails
-
getRestrictedAuthorities
- Specified by:
getRestrictedAuthorities
in interfaceOAuth2UserDetails
-
equals
- Overrides:
equals
in classorg.springframework.security.core.userdetails.User
-
canEqual
-
hashCode
public int hashCode()- Overrides:
hashCode
in classorg.springframework.security.core.userdetails.User
-