xuhy
2024-05-28 5470d21a35286abe41fafc25a7deaabefd7c55da
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
30
31
32
33
34
35
36
37
package com.stylefeng.guns.rest.modular.auth.controller.dto;
 
import java.io.Serializable;
 
/**
 * 认证的响应结果
 *
 * @author fengshuonan
 * @Date 2017/8/24 13:58
 */
public class AuthResponse implements Serializable {
 
    private static final long serialVersionUID = 1250166508152483573L;
 
    /**
     * jwt token
     */
    private final String token;
 
    /**
     * 用于客户端混淆md5加密
     */
    private final String randomKey;
 
    public AuthResponse(String token, String randomKey) {
        this.token = token;
        this.randomKey = randomKey;
    }
 
    public String getToken() {
        return this.token;
    }
 
    public String getRandomKey() {
        return randomKey;
    }
}