jaugment2.password
Class PasswordServiceProxy

java.lang.Object
  |
  +--java.rmi.server.RemoteObject
        |
        +--java.rmi.server.RemoteServer
              |
              +--java.rmi.server.UnicastRemoteObject
                    |
                    +--jaugment2.password.PasswordServiceProxy

public class PasswordServiceProxy
extends java.rmi.server.UnicastRemoteObject
implements net.jini.admin.Administrable, java.io.Serializable, java.rmi.Remote, PasswordServiceIF

The proxy of the text-editor-service

See Also:
Serialized Form

Field Summary
private  PasswordService service
           
 
Fields inherited from class java.rmi.server.UnicastRemoteObject
csf, port, portFactoryParamTypes, portParamTypes, serialVersionUID, ssf
 
Fields inherited from class java.rmi.server.RemoteServer
log, logname, serialVersionUID
 
Fields inherited from class java.rmi.server.RemoteObject
ref, serialVersionUID
 
Constructor Summary
(package private) PasswordServiceProxy(PasswordService service)
           
 
Method Summary
 java.lang.Object getAdmin()
          Returns an object that implements our administration-interfaces.
 java.lang.String getPassword(java.lang.String identifier, byte[] masterPWD)
          Get the given password out of the list
 java.lang.String[] getPasswordIdentifiers(byte[] masterPWD)
           
 void setMasterPassword(byte[] newMasterPWD, byte[] masterPWD)
          Set the master-password
 java.lang.String setPassword(java.lang.String identifier, java.lang.String password, byte[] masterPWD)
          Set the given password
 
Methods inherited from class java.rmi.server.UnicastRemoteObject
, clone, exportObject, exportObject, exportObject, exportObject, readObject, reexport, 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, writeObject
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

service

private PasswordService service
Constructor Detail

PasswordServiceProxy

PasswordServiceProxy(PasswordService service)
               throws java.rmi.RemoteException
Method Detail

getAdmin

public java.lang.Object getAdmin()
                          throws java.rmi.RemoteException
Returns an object that implements our administration-interfaces.
Specified by:
getAdmin in interface net.jini.admin.Administrable
Throws:
java.rmi.RemoteException -  
See Also:
JoinAdmin

getPassword

public java.lang.String getPassword(java.lang.String identifier,
                                    byte[] masterPWD)
                             throws java.rmi.RemoteException,
                                    java.lang.IllegalArgumentException
Get the given password out of the list
Specified by:
getPassword in interface PasswordServiceIF
Throws:
java.lang.IllegalArgumentException - if the masterPWD was wrong

getPasswordIdentifiers

public java.lang.String[] getPasswordIdentifiers(byte[] masterPWD)
                                          throws java.rmi.RemoteException,
                                                 java.lang.IllegalArgumentException,
                                                 java.lang.IllegalStateException
Specified by:
getPasswordIdentifiers in interface PasswordServiceIF

setPassword

public java.lang.String setPassword(java.lang.String identifier,
                                    java.lang.String password,
                                    byte[] masterPWD)
                             throws java.rmi.RemoteException,
                                    java.lang.IllegalArgumentException
Set the given password
Specified by:
setPassword in interface PasswordServiceIF
Throws:
java.lang.IllegalArgumentException - if the masterPWD was wrong

setMasterPassword

public void setMasterPassword(byte[] newMasterPWD,
                              byte[] masterPWD)
                       throws java.rmi.RemoteException,
                              java.lang.IllegalArgumentException
Set the master-password
Specified by:
setMasterPassword in interface PasswordServiceIF
Throws:
java.lang.IllegalArgumentException - if the masterPWD was wrong