-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUser.java
More file actions
51 lines (41 loc) · 987 Bytes
/
User.java
File metadata and controls
51 lines (41 loc) · 987 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
package AuctioningSystem;
/*
Code: auction client auctionClient.java
Date: 10th October 2000
Class that creates an user object which holds the user's information.
*/
import java.io.Serializable;
import java.security.*;
public class User implements Serializable {
private int uid;
private String name;
private String email;
private PublicKey serverkey;
private PrivateKey key;
public User(String n, String e){
name = n;
email = e;
}
public User(PrivateKey k, PublicKey sp, String n, String e, int id){
name = n;
email = e;
serverkey = sp;
key = k;
uid = id;
}
public PublicKey getServerPublicKey(){
return serverkey;
}
public PrivateKey getPrivateKey(){
return key;
}
public int getID(){
return uid;
}
public String getName(){
return name;
}
public String getEmail(){
return email;
}
}