jaugment2.texteditor
Class TextEditorProxy
java.lang.Object
|
+--java.rmi.server.RemoteObject
|
+--java.rmi.server.RemoteServer
|
+--java.rmi.server.UnicastRemoteObject
|
+--jaugment2.texteditor.TextEditorProxy
- public class TextEditorProxy
- extends java.rmi.server.UnicastRemoteObject
- implements net.jini.admin.Administrable, TextEditorProxyIF, java.rmi.Remote
The proxy of the text-editor-service
- See Also:
- Serialized Form
| 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 |
|
Method Summary |
void |
addBookmark(TextEditorProxyIF.Bookmark b)
|
void |
addBuffer(java.lang.Object name,
java.lang.StringBuffer content)
add a new string-buffers (old buffers with an equal name will be overwritten) |
net.jini.core.lease.Lease |
addBufferListener(net.jini.core.event.RemoteEventListener listener,
java.rmi.MarshalledObject handback,
int registerfor)
Subscribe for buffer-eddings, removals and changes |
boolean |
checksignGPG(byte[] data)
Check the GPG-signature on data |
void |
decrypt(java.lang.Object buffername,
byte[] in,
byte[] pwd)
Decrypt the given bytes representing a conventional encrypted pgp-packet with the given key a new buffer with the given name |
byte[] |
encrypt(java.lang.Object buffer,
byte[] pwd)
Encrypt the content of the given buffer with the given key PGP-compactible |
byte[] |
encryptGPG(byte[] msg,
java.lang.String keyname,
boolean amor)
Encrypt the content of the given buffer with the given key PGP-compactible. |
TextEditorProxyIF.ActionsEntry[] |
getActionsEntries()
return entries for all mime-actions found |
java.lang.Object |
getAdmin()
Returns an object that implements our administration-interfaces. |
TextEditorProxyIF.Bookmark[] |
getBookmarks()
|
java.lang.StringBuffer |
getBuffer(java.lang.Object name)
Get the current content of one of the string-buffers |
java.lang.String[] |
getGPGKeyNames(boolean onlysecretkeys)
Get the names of all GPG-keys |
RememberanceAgentServiceProxyIF[] |
getRememberanceAgentServiceProxyIF()
returns null if not implemented |
void |
removeBookmark(TextEditorProxyIF.Bookmark b)
|
java.lang.StringBuffer |
removeBuffer(java.lang.Object name)
remove one of the string-buffers |
byte[] |
signGPG(byte[] msg,
byte[] pwd,
java.lang.String keyname,
boolean clearsign)
Sign the given message with the given key PGP-compactible. |
byte[] |
signGPG(java.lang.Object buffer,
byte[] pwd,
java.lang.String keyname,
boolean clearsign)
Sign the content of the given buffer with the given key PGP-compactible. |
void |
updateBuffer(java.lang.Object name,
java.lang.StringBuffer newcontent)
update the content of a bufer |
| 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 |
proxy
private TextEditorService proxy
acl
private ProxyACL acl
TextEditorProxy
TextEditorProxy(TextEditorService service)
throws java.rmi.RemoteException
encrypt
public byte[] encrypt(java.lang.Object buffer,
byte[] pwd)
throws java.rmi.RemoteException
- Description copied from interface: TextEditorProxyIF
- Encrypt the content of the given buffer with the given key PGP-compactible
- Specified by:
- encrypt in interface TextEditorProxyIF
encryptGPG
public byte[] encryptGPG(byte[] msg,
java.lang.String keyname,
boolean amor)
throws java.rmi.RemoteException
- Encrypt the content of the given buffer with the given key PGP-compactible.
This function may not throw any exceptions but return null.
- Specified by:
- encryptGPG in interface TextEditorProxyIF
decrypt
public void decrypt(java.lang.Object buffername,
byte[] in,
byte[] pwd)
throws java.lang.Exception
- Decrypt the given bytes representing a conventional encrypted pgp-packet with the given key a new buffer with the given name
- Specified by:
- decrypt in interface TextEditorProxyIF
signGPG
public byte[] signGPG(byte[] msg,
byte[] pwd,
java.lang.String keyname,
boolean clearsign)
throws java.rmi.RemoteException
- Sign the given message with the given key PGP-compactible.
Returns the signed message with signature and amor
- Specified by:
- signGPG in interface TextEditorProxyIF
signGPG
public byte[] signGPG(java.lang.Object buffer,
byte[] pwd,
java.lang.String keyname,
boolean clearsign)
throws java.rmi.RemoteException
- Sign the content of the given buffer with the given key PGP-compactible.
Returns the signed message with signature and amor
- Specified by:
- signGPG in interface TextEditorProxyIF
getGPGKeyNames
public java.lang.String[] getGPGKeyNames(boolean onlysecretkeys)
throws java.rmi.RemoteException
- Get the names of all GPG-keys
- Specified by:
- getGPGKeyNames in interface TextEditorProxyIF
checksignGPG
public boolean checksignGPG(byte[] data)
throws java.rmi.RemoteException
- Check the GPG-signature on data
- Specified by:
- checksignGPG in interface TextEditorProxyIF
addBufferListener
public net.jini.core.lease.Lease addBufferListener(net.jini.core.event.RemoteEventListener listener,
java.rmi.MarshalledObject handback,
int registerfor)
throws java.rmi.RemoteException,
net.jini.core.lease.LeaseDeniedException,
java.lang.IllegalStateException
- Subscribe for buffer-eddings, removals and changes
- Specified by:
- addBufferListener in interface TextEditorProxyIF
getBuffer
public java.lang.StringBuffer getBuffer(java.lang.Object name)
throws java.lang.IllegalArgumentException,
java.rmi.RemoteException
- Get the current content of one of the string-buffers
- Specified by:
- getBuffer in interface TextEditorProxyIF
addBuffer
public void addBuffer(java.lang.Object name,
java.lang.StringBuffer content)
throws java.lang.IllegalArgumentException,
java.rmi.RemoteException
- add a new string-buffers (old buffers with an equal name will be overwritten)
- Specified by:
- addBuffer in interface TextEditorProxyIF
updateBuffer
public void updateBuffer(java.lang.Object name,
java.lang.StringBuffer newcontent)
throws java.lang.IllegalArgumentException,
java.rmi.RemoteException
- update the content of a bufer
- Specified by:
- updateBuffer in interface TextEditorProxyIF
removeBuffer
public java.lang.StringBuffer removeBuffer(java.lang.Object name)
throws java.lang.IllegalArgumentException,
java.rmi.RemoteException
- remove one of the string-buffers
- Specified by:
- removeBuffer in interface TextEditorProxyIF
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
getRememberanceAgentServiceProxyIF
public RememberanceAgentServiceProxyIF[] getRememberanceAgentServiceProxyIF()
- Description copied from interface: TextEditorProxyIF
- returns null if not implemented
- Specified by:
- getRememberanceAgentServiceProxyIF in interface TextEditorProxyIF
getActionsEntries
public TextEditorProxyIF.ActionsEntry[] getActionsEntries()
throws java.rmi.RemoteException
- return entries for all mime-actions found
- Specified by:
- getActionsEntries in interface TextEditorProxyIF
getBookmarks
public TextEditorProxyIF.Bookmark[] getBookmarks()
throws java.rmi.RemoteException
- Specified by:
- getBookmarks in interface TextEditorProxyIF
addBookmark
public void addBookmark(TextEditorProxyIF.Bookmark b)
throws java.rmi.RemoteException
- Specified by:
- addBookmark in interface TextEditorProxyIF
removeBookmark
public void removeBookmark(TextEditorProxyIF.Bookmark b)
throws java.rmi.RemoteException
- Specified by:
- removeBookmark in interface TextEditorProxyIF