JWTToken.java

/**
 * TFG 75.678 - TFG Desarrollo web 2020 e-Learning for Schools
 * Copyright (C) 2020  Eduardo Rodriguez Carro
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
package org.uoc.tfg.sel.security.model;

import java.util.Date;
import java.util.Map;

/**
 * The Class JWTToken.
 *
 * @author Eduardo Rodriguez Carro
 */
public class JWTToken {

	/** The Constant SESSION_ID. */
	public static final String SESSION_ID = "uuid";
	
	/** The issuer. */
	private String issuer;
	
	/** The session id. */
	private String sessionId;
	
	/** The subject. */
	private String subject;
	
	/** The expiration. */
	private Date expiration;

	/** The issued at. */
	private Date issuedAt;
	
	/** The other. */
	private Map<String,Object> other;
	
	/**
	 * Gets the issuer.
	 *
	 * @return the issuer
	 */
	public String getIssuer() {
		return issuer;
	}

	/**
	 * Sets the issuer.
	 *
	 * @param issuer the new issuer
	 */
	public void setIssuer(String issuer) {
		this.issuer = issuer;
	}

	/**
	 * Gets the subject.
	 *
	 * @return the subject
	 */
	public String getSubject() {
		return subject;
	}

	/**
	 * Sets the subject.
	 *
	 * @param subject the new subject
	 */
	public void setSubject(String subject) {
		this.subject = subject;
	}

	/**
	 * Gets the expiration.
	 *
	 * @return the expiration
	 */
	public Date getExpiration() {
		return expiration;
	}

	/**
	 * Sets the expiration.
	 *
	 * @param expiration the new expiration
	 */
	public void setExpiration(Date expiration) {
		this.expiration = expiration;
	}

	/**
	 * Gets the issued at.
	 *
	 * @return the issued at
	 */
	public Date getIssuedAt() {
		return issuedAt;
	}

	/**
	 * Sets the issued at.
	 *
	 * @param issuedAt the new issued at
	 */
	public void setIssuedAt(Date issuedAt) {
		this.issuedAt = issuedAt;
	}

	/**
	 * Gets the other.
	 *
	 * @return the other
	 */
	public Map<String, Object> getOther() {
		return other;
	}

	/**
	 * Sets the other.
	 *
	 * @param other the other
	 */
	public void setOther(Map<String, Object> other) {
		this.other = other;
	}

	/**
	 * Gets the session id.
	 *
	 * @return the session id
	 */
	public String getSessionId() {
		return sessionId;
	}

	/**
	 * Sets the session id.
	 *
	 * @param sessionId the new session id
	 */
	public void setSessionId(String sessionId) {
		this.sessionId = sessionId;
	}
	
}