Serializable
, org.springframework.security.core.userdetails.UserDetails
public final class ITrackerUserDetails extends Object implements org.springframework.security.core.userdetails.UserDetails
Constructor | Description |
---|---|
ITrackerUserDetails(org.itracker.model.User model,
Collection<org.itracker.model.Permission> permissions) |
Modifier and Type | Method | Description |
---|---|---|
Collection<? extends org.springframework.security.core.GrantedAuthority> |
getAuthorities() |
|
String |
getDisplayName() |
|
String |
getPassword() |
|
String |
getUsername() |
|
boolean |
isAccountNonExpired() |
|
boolean |
isAccountNonLocked() |
|
boolean |
isCredentialsNonExpired() |
|
boolean |
isEnabled() |
public ITrackerUserDetails(org.itracker.model.User model, Collection<org.itracker.model.Permission> permissions)
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 String getDisplayName()
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 © 2002–2019 itracker. All rights reserved.