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
ConstructorsConstructorDescriptionDefaultOAuth2UserDetails(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, withUsernameMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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:
getIdin interfaceOAuth2UserDetails
-
getClientId
- Specified by:
getClientIdin interfaceOAuth2UserDetails
-
isImpersonationAllowed
public boolean isImpersonationAllowed()- Specified by:
isImpersonationAllowedin interfaceOAuth2UserDetails
-
getRestrictions
- Specified by:
getRestrictionsin interfaceOAuth2UserDetails
-
getRestrictedAuthorities
- Specified by:
getRestrictedAuthoritiesin interfaceOAuth2UserDetails
-
equals
- Overrides:
equalsin classorg.springframework.security.core.userdetails.User
-
canEqual
-
hashCode
public int hashCode()- Overrides:
hashCodein classorg.springframework.security.core.userdetails.User
-