1 package org.astrogrid.ogsa.echo;
2
3 import java.rmi.RemoteException;
4
5
6 /***
7 * Defines the operations of the echo port-type.
8 */
9 public interface EchoPortType {
10
11 /***
12 * Returns the given string to the caller.
13 */
14 public String echo (String s);
15
16
17 /***
18 * Returns the caller's identity, taken from the security
19 * credentials.
20 */
21 public String whoAmI ();
22
23
24 /***
25 * Tests the presence of a delegate security-credential.
26 * Such a credential should be present if the caller uses
27 * message-level security in the call to this operation
28 * with delegation of privileges turned on.
29 *
30 * @return the name from the credential
31 */
32 public String testDelegatedCredentials () throws RemoteException;
33 }