public class Auth<T extends Serializable> extends Object implements org.springframework.security.core.userdetails.UserDetails
| Constructor and Description |
|---|
Auth(T id,
String username,
String password,
Set<? extends org.springframework.security.core.GrantedAuthority> authorities) |
| Modifier and Type | Method and Description |
|---|---|
Collection<? extends org.springframework.security.core.GrantedAuthority> |
getAuthorities() |
T |
getId() |
String |
getPassword() |
String |
getUsername() |
<Grant extends org.springframework.security.core.GrantedAuthority> |
hasRole(Grant grant) |
boolean |
isAccountNonExpired() |
boolean |
isAccountNonLocked() |
boolean |
isCredentialsNonExpired() |
boolean |
isEnabled() |
public T getId()
public Collection<? extends org.springframework.security.core.GrantedAuthority> getAuthorities()
getAuthorities in interface org.springframework.security.core.userdetails.UserDetailspublic String getPassword()
getPassword in interface org.springframework.security.core.userdetails.UserDetailspublic String getUsername()
getUsername in interface org.springframework.security.core.userdetails.UserDetailspublic boolean isAccountNonExpired()
isAccountNonExpired in interface org.springframework.security.core.userdetails.UserDetailspublic boolean isAccountNonLocked()
isAccountNonLocked in interface org.springframework.security.core.userdetails.UserDetailspublic boolean isCredentialsNonExpired()
isCredentialsNonExpired in interface org.springframework.security.core.userdetails.UserDetailspublic boolean isEnabled()
isEnabled in interface org.springframework.security.core.userdetails.UserDetailspublic <Grant extends org.springframework.security.core.GrantedAuthority> boolean hasRole(Grant grant)
Copyright © 2020 com.github.eoscode. All rights reserved.