org.springframework.security.oauth2.common.DefaultExpiringOAuth2RefreshToken Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spring-security-oauth2 Show documentation
Show all versions of spring-security-oauth2 Show documentation
Module for providing OAuth2 support to Spring Security
package org.springframework.security.oauth2.common;
import java.util.Date;
/**
*
* @deprecated See the OAuth 2.0 Migration Guide for Spring Security 5.
*
* @author Ryan Heaton
*/
@Deprecated
public class DefaultExpiringOAuth2RefreshToken extends DefaultOAuth2RefreshToken implements ExpiringOAuth2RefreshToken {
private static final long serialVersionUID = 3449554332764129719L;
private final Date expiration;
/**
* @param value
*/
public DefaultExpiringOAuth2RefreshToken(String value, Date expiration) {
super(value);
this.expiration = expiration;
}
/**
* The instant the token expires.
*
* @return The instant the token expires.
*/
public Date getExpiration() {
return expiration;
}
}