cscie160.project
Class SecurityImpl
java.lang.Object
|
+--java.rmi.server.RemoteObject
|
+--java.rmi.server.RemoteServer
|
+--java.rmi.server.UnicastRemoteObject
|
+--cscie160.project.SecurityImpl
- All Implemented Interfaces:
- ATMParams, java.rmi.Remote, Security, java.io.Serializable
- public class SecurityImpl
- extends java.rmi.server.UnicastRemoteObject
- implements Security, ATMParams
- See Also:
- Serialized Form
Fields inherited from class java.rmi.server.RemoteObject |
ref |
Constructor Summary |
SecurityImpl(cscie160.project.Bank mBank)
|
Constructor. |
Method Summary |
void |
authenticateAccounts(cscie160.project.TransactionNotification mTransaction)
|
Send all accounts specified in mTransaction for authentication |
void |
authorizeOperation(cscie160.project.TransactionNotification mTransaction)
|
Check authorization on account(s) according to transaction type. |
Methods inherited from class java.rmi.server.UnicastRemoteObject |
clone, exportObject, exportObject, exportObject, unexportObject |
Methods inherited from class java.rmi.server.RemoteServer |
getClientHost, getLog, setLog |
Methods inherited from class java.rmi.server.RemoteObject |
equals, getRef, hashCode, toString, toStub |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
SecurityImpl
public SecurityImpl(cscie160.project.Bank mBank)
throws java.rmi.RemoteException
- |
Constructor.
authenticateAccounts
public void authenticateAccounts(cscie160.project.TransactionNotification mTransaction)
throws SecurityException,
java.rmi.RemoteException
- |
Send all accounts specified in mTransaction for authentication
- Specified by:
authenticateAccounts
in interface Security
SecurityException
java.rmi.RemoteException
authorizeOperation
public void authorizeOperation(cscie160.project.TransactionNotification mTransaction)
throws SecurityException,
java.rmi.RemoteException
- |
Check authorization on account(s) according to transaction type.
If unauthorized, a SecurityException is thrown
- Specified by:
authorizeOperation
in interface Security
SecurityException
java.rmi.RemoteException