jaugment2.texteditor
Interface TextEditorProxyIF

All Known Implementing Classes:
TextEditorProxy

public interface TextEditorProxyIF
extends java.rmi.Remote, net.jini.admin.Administrable

An interface all text-editors arwe recommed implement to be found and integrated by services


Inner Class Summary
static class TextEditorProxyIF.ActionsEntry
          Helper-class to store the proxy and actions for a service;
static class TextEditorProxyIF.Bookmark
           
 
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
 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 interface net.jini.admin.Administrable
getAdmin
 

Method Detail

encrypt

public byte[] encrypt(java.lang.Object buffer,
                      byte[] pwd)
               throws java.rmi.RemoteException
Encrypt the content of the given buffer with the given key PGP-compactible

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.

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

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

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

getGPGKeyNames

public java.lang.String[] getGPGKeyNames(boolean onlysecretkeys)
                                  throws java.rmi.RemoteException
Get the names of all GPG-keys

checksignGPG

public boolean checksignGPG(byte[] data)
                     throws java.rmi.RemoteException
Check the GPG-signature on data

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

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

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)

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

removeBuffer

public java.lang.StringBuffer removeBuffer(java.lang.Object name)
                                    throws java.lang.IllegalArgumentException,
                                           java.rmi.RemoteException
remove one of the string-buffers

getRememberanceAgentServiceProxyIF

public RememberanceAgentServiceProxyIF[] getRememberanceAgentServiceProxyIF()
                                                                     throws java.rmi.RemoteException
returns null if not implemented

getActionsEntries

public TextEditorProxyIF.ActionsEntry[] getActionsEntries()
                                                   throws java.rmi.RemoteException
return entries for all mime-actions found

getBookmarks

public TextEditorProxyIF.Bookmark[] getBookmarks()
                                          throws java.rmi.RemoteException

removeBookmark

public void removeBookmark(TextEditorProxyIF.Bookmark b)
                    throws java.rmi.RemoteException

addBookmark

public void addBookmark(TextEditorProxyIF.Bookmark b)
                 throws java.rmi.RemoteException