无关风月
2025-02-14 11ec1c23a9f47ed70b124e413e33e3696897390f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package com.jilongda.common.security;
 
import org.springframework.security.core.GrantedAuthority;
 
/**
 * 权限封装
 *
 * @author Louis
 * @date Jun 29, 2019
 */
public class GrantedAuthorityImpl implements GrantedAuthority {
 
    private static final long serialVersionUID = 1L;
 
    private String authority;
 
    public GrantedAuthorityImpl(String authority) {
        this.authority = authority;
    }
 
    @Override
    public String getAuthority() {
        return this.authority;
    }
 
    public void setAuthority(String authority) {
        this.authority = authority;
    }
}