Class UserDetailsOAuth2AuthenticatedPrincipal
java.lang.Object
io.jmix.authorizationserver.introspection.UserDetailsOAuth2AuthenticatedPrincipal
- All Implemented Interfaces:
AcceptsGrantedAuthorities
,JmixUserDetails
,Serializable
,org.springframework.security.core.AuthenticatedPrincipal
,org.springframework.security.core.userdetails.UserDetails
,org.springframework.security.oauth2.core.OAuth2AuthenticatedPrincipal
public class UserDetailsOAuth2AuthenticatedPrincipal
extends Object
implements org.springframework.security.oauth2.core.OAuth2AuthenticatedPrincipal, JmixUserDetails
Instances of this class are set as authentication principal to the security context when resource server API are
accessed
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected Collection<? extends org.springframework.security.core.GrantedAuthority>
protected String
-
Constructor Summary
ConstructorDescriptionUserDetailsOAuth2AuthenticatedPrincipal
(String username, Map<String, Object> attributes, Collection<org.springframework.security.core.GrantedAuthority> authorities) -
Method Summary
Modifier and TypeMethodDescriptionCollection<? extends org.springframework.security.core.GrantedAuthority>
getName()
boolean
boolean
boolean
boolean
void
setAuthorities
(Collection<? extends org.springframework.security.core.GrantedAuthority> authorities) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.security.oauth2.core.OAuth2AuthenticatedPrincipal
getAttribute
-
Field Details
-
attributes
-
authorities
-
username
-
-
Constructor Details
-
UserDetailsOAuth2AuthenticatedPrincipal
public UserDetailsOAuth2AuthenticatedPrincipal(String username, Map<String, Object> attributes, Collection<org.springframework.security.core.GrantedAuthority> authorities)
-
-
Method Details
-
setAuthorities
public void setAuthorities(Collection<? extends org.springframework.security.core.GrantedAuthority> authorities) - Specified by:
setAuthorities
in interfaceAcceptsGrantedAuthorities
-
getPassword
- Specified by:
getPassword
in interfaceorg.springframework.security.core.userdetails.UserDetails
-
getUsername
- Specified by:
getUsername
in interfaceorg.springframework.security.core.userdetails.UserDetails
-
isAccountNonExpired
public boolean isAccountNonExpired()- Specified by:
isAccountNonExpired
in interfaceorg.springframework.security.core.userdetails.UserDetails
-
isAccountNonLocked
public boolean isAccountNonLocked()- Specified by:
isAccountNonLocked
in interfaceorg.springframework.security.core.userdetails.UserDetails
-
isCredentialsNonExpired
public boolean isCredentialsNonExpired()- Specified by:
isCredentialsNonExpired
in interfaceorg.springframework.security.core.userdetails.UserDetails
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabled
in interfaceorg.springframework.security.core.userdetails.UserDetails
-
getAttributes
- Specified by:
getAttributes
in interfaceorg.springframework.security.oauth2.core.OAuth2AuthenticatedPrincipal
-
getAuthorities
- Specified by:
getAuthorities
in interfaceorg.springframework.security.oauth2.core.OAuth2AuthenticatedPrincipal
- Specified by:
getAuthorities
in interfaceorg.springframework.security.core.userdetails.UserDetails
-
getName
- Specified by:
getName
in interfaceorg.springframework.security.core.AuthenticatedPrincipal
-