All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.petruki.switcher.client.domain.AuthResponse Maven / Gradle / Ivy

There is a newer version: 1.0.6
Show newest version
package com.github.petruki.switcher.client.domain;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;

/**
 * @author rogerio
 * @since 2019-12-24
 */
@JsonSerialize
public class AuthResponse {
	
	private String token;
	private long exp;
	
	public String getToken() {
		
		return this.token;
	}

	public void setToken(String token) {
		
		this.token = token;
	}

	public void setExp(long exp) {
		
		this.exp = exp;
	}
	
	public boolean isExpired() {
		
		return this.exp*1000 < System.currentTimeMillis();
	}
	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy