64 lines
1.3 KiB
Java
64 lines
1.3 KiB
Java
package org.gcube.portlet.user.my_vres.shared;
|
|
|
|
import java.io.Serializable;
|
|
|
|
@SuppressWarnings("serial")
|
|
public class AuthorizationBean implements Serializable {
|
|
private String token;
|
|
private String state;
|
|
private boolean success;
|
|
private String errorDescription;
|
|
|
|
public AuthorizationBean() {
|
|
super();
|
|
// TODO Auto-generated constructor stub
|
|
}
|
|
|
|
public AuthorizationBean(String token, String state, boolean success, String errorDescription) {
|
|
super();
|
|
this.token = token;
|
|
this.state = state;
|
|
this.success = success;
|
|
this.errorDescription = errorDescription;
|
|
}
|
|
|
|
public String getToken() {
|
|
return token;
|
|
}
|
|
|
|
public void setToken(String token) {
|
|
this.token = token;
|
|
}
|
|
|
|
public String getState() {
|
|
return state;
|
|
}
|
|
|
|
public void setState(String state) {
|
|
this.state = state;
|
|
}
|
|
|
|
public boolean isSuccess() {
|
|
return success;
|
|
}
|
|
|
|
public void setSuccess(boolean success) {
|
|
this.success = success;
|
|
}
|
|
|
|
public String getErrorDescription() {
|
|
return errorDescription;
|
|
}
|
|
|
|
public void setErrorDescription(String errorDescription) {
|
|
this.errorDescription = errorDescription;
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
return "AuthorizationBean [token=" + token + ", state=" + state + ", success=" + success + ", errorDescription="
|
|
+ errorDescription + "]";
|
|
}
|
|
|
|
}
|