public static class DefaultRoleUserDetailsServiceDecorator.DefaultRoleUserDetailsProxy extends Object implements org.springframework.security.core.userdetails.UserDetails
UserDetails
that has an extra role. The extra role is added to the end of the original role list and
only if it is not already in the original role list.Constructor and Description |
---|
DefaultRoleUserDetailsProxy(org.springframework.security.core.userdetails.UserDetails userDetails,
org.springframework.security.core.GrantedAuthority defaultRole) |
DefaultRoleUserDetailsProxy(org.springframework.security.core.userdetails.UserDetails userDetails,
org.springframework.security.core.GrantedAuthority defaultRole,
org.pentaho.platform.api.engine.security.IAuthenticationRoleMapper roleMapper) |
Modifier and Type | Method and Description |
---|---|
Collection<? extends org.springframework.security.core.GrantedAuthority> |
getAuthorities() |
protected Collection<? extends org.springframework.security.core.GrantedAuthority> |
getNewRoles(org.springframework.security.core.GrantedAuthority defaultRole)
Since UserDetails is immutable, we can safely pre-calculate the new roles.
|
String |
getPassword() |
String |
getUsername() |
boolean |
isAccountNonExpired() |
boolean |
isAccountNonLocked() |
boolean |
isCredentialsNonExpired() |
boolean |
isEnabled() |
public DefaultRoleUserDetailsProxy(org.springframework.security.core.userdetails.UserDetails userDetails, org.springframework.security.core.GrantedAuthority defaultRole)
public DefaultRoleUserDetailsProxy(org.springframework.security.core.userdetails.UserDetails userDetails, org.springframework.security.core.GrantedAuthority defaultRole, org.pentaho.platform.api.engine.security.IAuthenticationRoleMapper roleMapper)
protected Collection<? extends org.springframework.security.core.GrantedAuthority> getNewRoles(org.springframework.security.core.GrantedAuthority defaultRole)
public Collection<? extends org.springframework.security.core.GrantedAuthority> getAuthorities()
getAuthorities
in interface org.springframework.security.core.userdetails.UserDetails
public String getPassword()
getPassword
in interface org.springframework.security.core.userdetails.UserDetails
public String getUsername()
getUsername
in interface org.springframework.security.core.userdetails.UserDetails
public boolean isAccountNonExpired()
isAccountNonExpired
in interface org.springframework.security.core.userdetails.UserDetails
public boolean isAccountNonLocked()
isAccountNonLocked
in interface org.springframework.security.core.userdetails.UserDetails
public boolean isCredentialsNonExpired()
isCredentialsNonExpired
in interface org.springframework.security.core.userdetails.UserDetails
public boolean isEnabled()
isEnabled
in interface org.springframework.security.core.userdetails.UserDetails
Copyright © 2019 Hitachi Vantara. All rights reserved.