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

com.github.switcherapi.client.model.response.AuthResponse Maven / Gradle / Ivy

There is a newer version: 2.2.2
Show newest version
package com.github.switcherapi.client.model.response;

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

/**
 * @author Roger Floriano (petruki)
 * @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 * 1000;
	}

	public boolean isExpired() {
		return this.exp < System.currentTimeMillis();
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy