-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBuyingInterface.java
More file actions
28 lines (21 loc) · 908 Bytes
/
BuyingInterface.java
File metadata and controls
28 lines (21 loc) · 908 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
package AuctioningSystem;
/*
Code: Buying Interface buyinginterface.java
The buying interface provides a description of the 3 remote
methods available as part of the service provided
by the remote object auctionimpl. The interface
extends remote and each methods throws a remote exception.
*/
import java.util.*;
public interface BuyingInterface
extends java.rmi.Remote {
public Float getHighestBid(int auctionId)
throws java.rmi.RemoteException;
public Collection<Auction> listAllAuctions()
throws java.rmi.RemoteException;
public int bid(int auctionID, Float bid, int bidderId)
throws java.rmi.RemoteException;
public byte[] sign(byte[] b) throws java.rmi.RemoteException;
public byte[] authUser(int uid) throws java.rmi.RemoteException;
public boolean returnSignedNumber(byte[] b, int uid) throws java.rmi.RemoteException;
}