1 package org.springframework.security.oauth2.common;
2
3 import java.util.Date;
4
5
6
7
8 public class DefaultExpiringOAuth2RefreshToken extends DefaultOAuth2RefreshToken implements ExpiringOAuth2RefreshToken {
9
10 private static final long serialVersionUID = 3449554332764129719L;
11
12 private final Date expiration;
13
14
15
16
17 public DefaultExpiringOAuth2RefreshToken(String value, Date expiration) {
18 super(value);
19 this.expiration = expiration;
20 }
21
22
23
24
25
26
27 public Date getExpiration() {
28 return expiration;
29 }
30
31 }