/*
* Password Management Servlets (PWM)
* http://www.pwm-project.org
*
* Copyright (c) 2006-2009 Novell, Inc.
* Copyright (c) 2009-2017 The PWM Project
*
* 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 2 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, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
package password.pwm.http.servlet.helpdesk;
import java.io.Serializable;
import java.util.Date;
public class HelpdeskVerificationRequestBean implements Serializable {
private String destination;
private String userKey;
private String code;
private String tokenData; // encrypted during transport
private String verificationState;
public String getDestination() {
return destination;
}
public void setDestination(final String destination) {
this.destination = destination;
}
public String getUserKey() {
return userKey;
}
public void setUserKey(final String userKey) {
this.userKey = userKey;
}
public String getCode() {
return code;
}
public void setCode(final String code) {
this.code = code;
}
public String getTokenData() {
return tokenData;
}
public void setTokenData(final String tokenData) {
this.tokenData = tokenData;
}
public String getVerificationState() {
return verificationState;
}
public void setVerificationState(final String verificationState) {
this.verificationState = verificationState;
}
static class TokenData implements Serializable {
private String token;
private Date issueDate;
public String getToken() {
return token;
}
public void setToken(final String token) {
this.token = token;
}
public Date getIssueDate() {
return issueDate;
}
public void setIssueDate(final Date issueDate) {
this.issueDate = issueDate;
}
}
}