getToken()   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 2
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
c 1
b 0
f 0
dl 0
loc 2
rs 10
eloc 2
1
package unicon.matthews.security.model.token;
2
3
import io.jsonwebtoken.Claims;
4
5
import com.fasterxml.jackson.annotation.JsonIgnore;
6
7
/**
8
 * Raw representation of JWT Token.
9
 * 
10
 * @author vladimir.stankovic
11
 *
12
 *         May 31, 2016
13
 */
14
public final class AccessJwtToken implements JwtToken {
15
    private final String rawToken;
16
    @JsonIgnore private Claims claims;
17
18
    protected AccessJwtToken(final String token, Claims claims) {
19
        this.rawToken = token;
20
        this.claims = claims;
21
    }
22
23
    public String getToken() {
24
        return this.rawToken;
25
    }
26
27
    public Claims getClaims() {
28
        return claims;
29
    }
30
}
31