Last change
on this file was 8d11f8c, checked in by jovanmanchev <jovanmanchev3003@…>, 18 months ago |
code added, trial 2
|
-
Property mode
set to
100644
|
File size:
1.0 KB
|
Rev | Line | |
---|
[8d11f8c] | 1 | //package com.example.fooddeliverysystem.model;
|
---|
| 2 | //
|
---|
| 3 | //import org.springframework.security.core.GrantedAuthority;
|
---|
| 4 | //import org.springframework.security.core.userdetails.UserDetails;
|
---|
| 5 | //
|
---|
| 6 | //import java.util.Collection;
|
---|
| 7 | //
|
---|
| 8 | //public class UserPrincipal {
|
---|
| 9 | //
|
---|
| 10 | // private User user;
|
---|
| 11 | //
|
---|
| 12 | // public UserPrincipal(User user){
|
---|
| 13 | // this.user = user;
|
---|
| 14 | // }
|
---|
| 15 | //
|
---|
| 16 | // @Override
|
---|
| 17 | // public Collection<? extends GrantedAuthority> getAuthorities() {
|
---|
| 18 | // return null;
|
---|
| 19 | // }
|
---|
| 20 | //
|
---|
| 21 | // @Override
|
---|
| 22 | // public String getPassword() {
|
---|
| 23 | // return null;
|
---|
| 24 | // }
|
---|
| 25 | //
|
---|
| 26 | // @Override
|
---|
| 27 | // public String getUsername() {
|
---|
| 28 | // return null;
|
---|
| 29 | // }
|
---|
| 30 | //
|
---|
| 31 | // @Override
|
---|
| 32 | // public boolean isAccountNonExpired() {
|
---|
| 33 | // return false;
|
---|
| 34 | // }
|
---|
| 35 | //
|
---|
| 36 | // @Override
|
---|
| 37 | // public boolean isAccountNonLocked() {
|
---|
| 38 | // return false;
|
---|
| 39 | // }
|
---|
| 40 | //
|
---|
| 41 | // @Override
|
---|
| 42 | // public boolean isCredentialsNonExpired() {
|
---|
| 43 | // return false;
|
---|
| 44 | // }
|
---|
| 45 | //
|
---|
| 46 | // @Override
|
---|
| 47 | // public boolean isEnabled() {
|
---|
| 48 | // return false;
|
---|
| 49 | // }
|
---|
| 50 | //}
|
---|
Note:
See
TracBrowser
for help on using the repository browser.