system-service-definition-p.../src/main/java/org/gcube/portlets/admin/systemservicedefinition/util/UserCredentials.java

72 lines
1.4 KiB
Java
Raw Normal View History

2021-10-08 18:37:54 +02:00
package org.gcube.portlets.admin.systemservicedefinition.util;
import java.io.Serializable;
/**
*
* @author Giancarlo Panichi
*
*/
public class UserCredentials implements Serializable {
private static final long serialVersionUID = -3020343255604840519L;
private long userId;
private String username;
private String currentScope;
2021-10-13 19:05:54 +02:00
private String accessToken;
2021-10-08 18:37:54 +02:00
public UserCredentials() {
super();
}
2021-10-13 19:05:54 +02:00
public UserCredentials(long userId, String username, String currentScope, String accessToken) {
2021-10-08 18:37:54 +02:00
super();
this.userId = userId;
this.username = username;
this.currentScope = currentScope;
2021-10-13 19:05:54 +02:00
this.accessToken = accessToken;
2021-10-08 18:37:54 +02:00
}
public long getUserId() {
return userId;
}
public void setUserId(long userId) {
this.userId = userId;
}
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
public String getCurrentScope() {
return currentScope;
}
public void setCurrentScope(String currentScope) {
this.currentScope = currentScope;
}
2021-10-13 19:05:54 +02:00
public String getAccessToken() {
return accessToken;
}
public void setAccessToken(String accessToken) {
this.accessToken = accessToken;
}
2021-10-08 18:37:54 +02:00
public static long getSerialversionuid() {
return serialVersionUID;
}
@Override
public String toString() {
2021-10-13 19:05:54 +02:00
return "UserCredentials [userId=" + userId + ", username=" + username + ", currentScope=" + currentScope
+ ", accessToken=" + accessToken + "]";
2021-10-08 18:37:54 +02:00
}
}